Simplify backtest calling interface

This commit is contained in:
Matthias
2022-10-18 06:39:55 +02:00
parent c7fff1213c
commit c3d4fb9f1b
4 changed files with 10 additions and 16 deletions

View File

@@ -89,6 +89,7 @@ async def api_start_backtest(bt_settings: BacktestRequest, background_tasks: Bac
lastconfig['enable_protections'] = btconfig.get('enable_protections')
lastconfig['dry_run_wallet'] = btconfig.get('dry_run_wallet')
ApiServer._bt.enable_protections = btconfig.get('enable_protections', False)
ApiServer._bt.strategylist = [strat]
ApiServer._bt.results = {}
ApiServer._bt.load_prior_backtest()