pub trait TradeHistoryClient: Send + Sync {
// Required method
fn fetch_recent_trades<'life0, 'life1, 'async_trait>(
&'life0 self,
pair_symbol: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Trade>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Trait for clients that can fetch recent trades.
Required Methods§
Sourcefn fetch_recent_trades<'life0, 'life1, 'async_trait>(
&'life0 self,
pair_symbol: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Trade>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_recent_trades<'life0, 'life1, 'async_trait>(
&'life0 self,
pair_symbol: &'life1 str,
limit: u32,
) -> Pin<Box<dyn Future<Output = Result<Vec<Trade>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch the most recent trades for the given pair symbol.
limit controls the maximum number of trades returned.