pub fn run_backtest<M: BacktestModel>(
model: &mut M,
events: &[M::Event],
config: BacktestConfig,
) -> Result<BacktestReport<M::State, M::Action>, BacktestError>Expand description
Execute a deterministic replay. Events with the same timestamp are allowed and preserve input order; decreasing timestamps fail closed.