Trait barter_data::ExchangeClient[][src]

pub trait ExchangeClient {
    const EXCHANGE_NAME: &'static str;

    fn consume_trades<'life0, 'async_trait>(
        &'life0 mut self,
        symbol: String
    ) -> Pin<Box<dyn Future<Output = Result<UnboundedReceiverStream<Trade>, ClientError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn consume_candles<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        symbol: String,
        interval: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<UnboundedReceiverStream<Candle>, ClientError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Client trait defining the behaviour of all implementing ExchangeClients. All methods return a stream of normalised data.

Associated Constants

Required methods

Implementors