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>,
}Expand description
Per-instrument sizing, costs, initial/maintenance margin and IOC policy. Defaults preserve the original continuous, unlevered next-open simulator.
Fields§
§quantity_step: f32§fee_per_unit: f32§leverage: f32Requested leverage; 1..=1000. Spot requires one and no margin tiers.
latency_steps: u32Additional observed rows after the original next-row execution boundary.
max_slippage_bps: f32IOC price guard relative to executable touch at order submission.
liquidation_fee: f32Additional forced-liquidation commission fraction, not ordinary exits.
margin_tiers: Vec<TradingMarginTier>Up to eight sorted tiers. Leveraged execution requires explicit tiers.
Implementations§
Trait Implementations§
Source§impl Clone for TradingExecution
impl Clone for TradingExecution
Source§impl Debug for TradingExecution
impl Debug for TradingExecution
Source§impl Default for TradingExecution
impl Default for TradingExecution
Source§impl PartialEq for TradingExecution
impl PartialEq for TradingExecution
impl StructuralPartialEq for TradingExecution
Auto Trait Implementations§
impl Forget for TradingExecution
impl Freeze for TradingExecution
impl Move for TradingExecution
impl RefUnwindSafe for TradingExecution
impl Send for TradingExecutionwhere
RawVecInner: Send,
impl Sync for TradingExecutionwhere
RawVecInner: Sync,
impl Unpin for TradingExecution
impl UnsafeUnpin for TradingExecution
impl UnwindSafe for TradingExecutionwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more