Trait hftbacktest::types::BotTypedDepth

source ·
pub trait BotTypedDepth<MD> {
    // Required method
    fn depth_typed(&self, asset_no: usize) -> &MD;
}
Expand description

Provides an interface for a backtester or a bot.

Required Methods§

source

fn depth_typed(&self, asset_no: usize) -> &MD

Returns the MarketDepth.

  • asset_no - Asset number from which the market depth will be retrieved.

Implementors§

source§

impl<MD> BotTypedDepth<MD> for MultiAssetMultiExchangeBacktest<MD>
where MD: MarketDepth,

source§

impl<MD> BotTypedDepth<MD> for LiveBot<MD>
where MD: MarketDepth,

source§

impl<MD, Local, Exchange> BotTypedDepth<MD> for MultiAssetSingleExchangeBacktest<MD, Local, Exchange>
where MD: MarketDepth, Local: LocalProcessor<MD, Event>, Exchange: Processor,