From 82cdfba49441e657cacb7d9b58adc5ae34a571ae Mon Sep 17 00:00:00 2001 From: Wade Dyck Date: Mon, 27 Dec 2021 12:48:42 -0700 Subject: [PATCH] Remove the guards against downloading data in futures mode. --- freqtrade/commands/data_commands.py | 2 -- tests/commands/test_commands.py | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/freqtrade/commands/data_commands.py b/freqtrade/commands/data_commands.py index 0c6f48088..2c435a6e0 100644 --- a/freqtrade/commands/data_commands.py +++ b/freqtrade/commands/data_commands.py @@ -64,8 +64,6 @@ def start_download_data(args: Dict[str, Any]) -> None: try: if config.get('download_trades'): - if config.get('trading_mode') == 'futures': - raise OperationalException("Trade download not supported for futures.") pairs_not_available = refresh_backtest_trades_data( exchange, pairs=expanded_pairs, datadir=config['datadir'], timerange=timerange, new_pairs_days=config['new_pairs_days'], diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 2b5504324..4c5a83c9c 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -822,10 +822,8 @@ def test_download_data_trades(mocker, caplog): "--trading-mode", "futures", "--dl-trades" ] - with pytest.raises(OperationalException, - match="Trade download not supported for futures."): - start_download_data(get_args(args)) + start_download_data(get_args(args)) def test_start_convert_trades(mocker, caplog):