run_backtest#

API documentation for tradeexecutor.backtest.backtest_runner.run_backtest Python function.

run_backtest(setup, client=None, allow_missing_fees=False, execution_test_hook=None, execution_context=None)[source]#

Run a strategy backtest.

Loads strategy file, construct trading universe is real data downloaded with Trading Strategy client.

Parameters:
Returns:

Tuple(the final state of the backtest, trading universe, debug dump)

Return type:

BacktestResult