pub trait MarketDataHandler {
    // Required methods
    fn on_price_of<'life0, 'async_trait>(
        &'life0 self,
        symbol_id: u32,
        price: SpotPrice
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_market_depth_full_refresh<'life0, 'async_trait>(
        &'life0 self,
        symbol_id: u32,
        full_depth: HashMap<String, DepthPrice>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_market_depth_incremental_refresh<'life0, 'async_trait>(
        &'life0 self,
        refresh: Vec<IncrementalRefresh>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn on_price_of<'life0, 'async_trait>( &'life0 self, symbol_id: u32, price: SpotPrice ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn on_market_depth_full_refresh<'life0, 'async_trait>( &'life0 self, symbol_id: u32, full_depth: HashMap<String, DepthPrice> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

source

fn on_market_depth_incremental_refresh<'life0, 'async_trait>( &'life0 self, refresh: Vec<IncrementalRefresh> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§