preload_data#
API documentation for tradeexecutor.backtest.data_preload.preload_data Python function.
- preload_data(client, create_trading_universe, universe_options, execution_context=None)[source]#
Show nice progress bar for setting up data fees for backtesting trading universe.
We trigger call to create_trading_universe before the actual backtesting begins
The client is in a mode that it will display dataset download progress bars. We do not display these progress bars by default, as it could a bit noisy.
- Parameters:
client (BaseClient) –
create_trading_universe (CreateTradingUniverseProtocol) –
universe_options (UniverseOptions) –
execution_context (tradeexecutor.strategy.execution_context.ExecutionContext | None) –
- Return type: