Remove the guards against downloading data in futures mode.

This commit is contained in:
Wade Dyck 2021-12-27 12:48:42 -07:00
parent 3d9360bb8c
commit 82cdfba494
2 changed files with 1 additions and 5 deletions

View File

@ -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'],

View File

@ -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):