Skip to main content

UnderlyingCandleSource

Trait UnderlyingCandleSource 

Source
pub trait UnderlyingCandleSource: Send + Sync {
    // Required method
    fn fetch_candles<'life0, 'life1, 'async_trait>(
        &'life0 self,
        coin: &'life1 str,
        resolution: CandleResolution,
        start_time_ms: i64,
        end_time_ms: i64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<UnderlyingCandle>, CandleSourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn fetch_candles<'life0, 'life1, 'async_trait>( &'life0 self, coin: &'life1 str, resolution: CandleResolution, start_time_ms: i64, end_time_ms: i64, ) -> Pin<Box<dyn Future<Output = Result<Vec<UnderlyingCandle>, CandleSourceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§