Expand description
Multi-agent market simulation engine
Structs§
Functions§
- run_
backtest - Run backtest with the default adverse selection lookback (10 steps).
- run_
backtest_ lookback - Run backtest with a custom adverse selection lookback for computing M(k).
- run_
backtest_ with_ liquidation - Run backtest with terminal liquidation applied uniformly at the end.
liquidation_half_spreadis the half-spread cost per unit of residual inventory:|final_q| * liquidation_half_spreadis deducted from bothpnl_spreadandfinal_equityso all strategies are evaluated on equal footing regardless of whether they have their own terminal flattening logic.