OrderBookHandler

Trait OrderBookHandler 

Source
pub trait OrderBookHandler: Send {
    // Required method
    fn on_order_book<'life0, 'async_trait>(
        &'life0 mut self,
        book: OrderBook,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Abstract handler for order book events.

Required Methods§

Source

fn on_order_book<'life0, 'async_trait>( &'life0 mut self, book: OrderBook, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Called for each incoming order book snapshot.

Implementors§