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,
}Fields§
§environments: u32Independent device lanes (round-robin over supplied contiguous segments).
window: u32Positive closed-bar window length.
horizon: u32Episode length in bars, 1..=1,000,000; fill counts remain exact in F32.
seed: u64Full 64-bit deterministic reset seed.
capital: f32Initial analytical capital per independent lane.
exposure: f32Fraction of equity budgeted for entry margin and costs, in (0,1]. Instrument execution rules may additionally admit explicit leverage.
taker_fee: f32Actual-notional taker fee fraction on every execution leg.
slippage_bps: f32Adverse one-way slippage in basis points, excluding spread.
spread_bps: f32Full bid/ask spread in basis points; half is charged per execution leg.
max_drawdown: f32Peak-equity drawdown fraction that terminates and closes inventory.
perpetual: boolPerpetuals use short/flat/long; Spot uses flat/long (no short category).
liquidate_at_horizon: boolClose and terminate at the horizon; otherwise truncate with final-state bootstrap.
maker_window_steps: u32Observed book rows a flat-to-position entry rests at its passive touch before taker fallback; zero disables maker execution. Requires per-row books.
maker_requotes: u32Maximum passive requotes per entry leg toward the moved touch, bounded by the IOC slippage guard; exhausted budget falls back to taker.
maker_fee: f32Actual-notional fee fraction on passive fills. Consumers resolve a missing venue maker rate to taker_fee themselves; this field is only the charged rate.