Realm

oa::ml::environment::TradingExecution

Per-instrument sizing, costs, initial/maintenance margin and IOC policy. Defaults preserve the original continuous, unlevered next-open simulator.

StRust public API

Declaration

pub struct TradingExecution { pub quantity_step: f32, pub fee_per_unit: f32, pub leverage: f32, pub latency_steps: u32, pub max_slippage_bps: f32, pub liquidation_fee: f32, pub margin_tiers: Vec<TradingMarginTier>, }
Public Rust declaration.

Public Methods

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

Associated Functions

fn default() -> Self

Public Data Members

quantity_stepf32field
fee_per_unitf32field
leveragef32field
latency_stepsu32field
max_slippage_bpsf32field
liquidation_feef32field
margin_tiersVec<TradingMarginTier>field

Public Method Documentation

pub fn validate(&self) -> Result<()>
No public source comment is attached to this declaration.
fn clone( &self ) -> TradingExecution
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: &TradingExecution ) -> bool
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.