Realm

oa::ml::environment::TradingConfig

Struct published by the oa::ml::environment module.

StRust public API

Declaration

pub struct TradingConfig {Show 15 fields pub environments: u32, pub window: u32, pub horizon: u32, pub seed: u64, pub capital: f32, pub exposure: f32, pub taker_fee: f32, pub slippage_bps: f32, pub spread_bps: f32, pub max_drawdown: f32, pub perpetual: bool, pub liquidate_at_horizon: bool, pub maker_window_steps: u32, pub maker_requotes: u32, pub maker_fee: f32, }
Public Rust declaration.

Public Methods

pub fn validate(self) -> Result<()>
fn clone(&self) -> TradingConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &TradingConfig) -> bool

Public Data Members

environmentsu32field
windowu32field
horizonu32field
seedu64field
capitalf32field
exposuref32field
taker_feef32field
slippage_bpsf32field
spread_bpsf32field
max_drawdownf32field
perpetualboolfield
liquidate_at_horizonboolfield
maker_window_stepsu32field
maker_requotesu32field
maker_feef32field

Public Method Documentation

pub fn validate(self) -> Result<()>
No public source comment is attached to this declaration.
fn clone( &self ) -> TradingConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &TradingConfig ) -> bool
No public source comment is attached to this declaration.