Add futures argument to download-data command

This commit is contained in:
Matthias
2021-11-27 16:36:59 +01:00
parent 392128013f
commit 504efbd6d4
3 changed files with 15 additions and 1 deletions

View File

@@ -64,6 +64,8 @@ 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'],