Skip to main content

SettlementReader

Trait SettlementReader 

Source
pub trait SettlementReader: Send + Sync {
    // Required methods
    fn is_settlement_ledger_applied_sync(
        &self,
        wallet: &WalletAddress,
        symbol: &str,
    ) -> Result<bool>;
    fn get_applied_settlement_symbols_sync(
        &self,
        wallet: &WalletAddress,
        symbols: &[String],
    ) -> Result<HashSet<String>>;
    fn get_total_fill_volume_sync(&self) -> Result<(i64, Decimal)>;
}
Expand description

Read-only settlement queries.

Required Methods§

Source

fn is_settlement_ledger_applied_sync( &self, wallet: &WalletAddress, symbol: &str, ) -> Result<bool>

Check if a specific settlement has been applied to the ledger.

Source

fn get_applied_settlement_symbols_sync( &self, wallet: &WalletAddress, symbols: &[String], ) -> Result<HashSet<String>>

Return the subset of symbols that have applied settlement payouts for a wallet.

Source

fn get_total_fill_volume_sync(&self) -> Result<(i64, Decimal)>

Get total fill volume: (fill_count, total_notional).

Implementors§