From 40036bc7105d3ef744ec2034a003bbd02719c1b4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 20 Dec 2021 19:41:10 +0100 Subject: [PATCH] Force dry-run for webserver backtest mode closes #6094 --- freqtrade/rpc/api_server/api_backtest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/rpc/api_server/api_backtest.py b/freqtrade/rpc/api_server/api_backtest.py index edbc39772..d110134d7 100644 --- a/freqtrade/rpc/api_server/api_backtest.py +++ b/freqtrade/rpc/api_server/api_backtest.py @@ -33,6 +33,9 @@ async def api_start_backtest(bt_settings: BacktestRequest, background_tasks: Bac if settings[setting] is not None: btconfig[setting] = settings[setting] + # Force dry-run for backtesting + btconfig['dry_run'] = True + # Start backtesting # Initialize backtesting object def run_backtest():