pub enum UnifiedProvider {
BinanceFutures(Box<BinanceFuturesProvider>),
}Expand description
Unified provider interface for the monitor system
Variants§
BinanceFutures(Box<BinanceFuturesProvider>)
Binance futures market provider
Implementations§
Trait Implementations§
Source§impl ProviderExt for UnifiedProvider
impl ProviderExt for UnifiedProvider
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect to the exchange
Source§fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnect from the exchange
Source§fn subscribe_orderbook<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
depth: usize,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe_orderbook<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
depth: usize,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Subscribe to orderbook updates for an instrument
Source§fn subscribe_trades<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe_trades<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Subscribe to trade updates for an instrument
Source§fn unsubscribe_orderbook<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unsubscribe_orderbook<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unsubscribe from orderbook updates
Source§fn unsubscribe_trades<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unsubscribe_trades<'life0, 'life1, 'async_trait>(
&'life0 mut self,
instrument_id: &'life1 InstrumentId,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unsubscribe from trade updates
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Check if connected
Source§fn connection_stats(&self) -> ConnectionStats
fn connection_stats(&self) -> ConnectionStats
Get connection statistics
Auto Trait Implementations§
impl Freeze for UnifiedProvider
impl !RefUnwindSafe for UnifiedProvider
impl Send for UnifiedProvider
impl Sync for UnifiedProvider
impl Unpin for UnifiedProvider
impl !UnwindSafe for UnifiedProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more