Skip to main content

OrderSnapshotProvider

Trait OrderSnapshotProvider 

Source
pub trait OrderSnapshotProvider: Send + Sync {
    // Required methods
    fn get_open_orders_for_wallet(
        &self,
        wallet: &WalletAddress,
    ) -> Vec<RuntimeOrderSummary>;
    fn get_all_orders(&self) -> Vec<(RuntimeOrderSummary, WalletAddress)>;
}
Expand description

Read-only interface for accessing open orders from an engine snapshot.

Required Methods§

Source

fn get_open_orders_for_wallet( &self, wallet: &WalletAddress, ) -> Vec<RuntimeOrderSummary>

Source

fn get_all_orders(&self) -> Vec<(RuntimeOrderSummary, WalletAddress)>

Implementors§