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§
sourcefn depth_typed(&self, asset_no: usize) -> &MD
fn depth_typed(&self, asset_no: usize) -> &MD
Returns the MarketDepth.
asset_no
- Asset number from which the market depth will be retrieved.