From 489cd008d6d8b2e285b24c56cb552de2a82a4942 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 27 Aug 2025 10:15:04 +0200 Subject: [PATCH] chore: invert "parallel download" option --- freqtrade/commands/arguments.py | 2 +- freqtrade/commands/cli_options.py | 8 ++++---- freqtrade/configuration/configuration.py | 2 +- freqtrade/data/history/history_utils.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/freqtrade/commands/arguments.py b/freqtrade/commands/arguments.py index ca98b08ca..8eb13d25d 100755 --- a/freqtrade/commands/arguments.py +++ b/freqtrade/commands/arguments.py @@ -156,7 +156,7 @@ ARGS_DOWNLOAD_DATA = [ "days", "new_pairs_days", "include_inactive", - "use_parallel_download", + "no_parallel_download", "timerange", "download_trades", "convert_trades", diff --git a/freqtrade/commands/cli_options.py b/freqtrade/commands/cli_options.py index c4599cb10..4e54930a2 100755 --- a/freqtrade/commands/cli_options.py +++ b/freqtrade/commands/cli_options.py @@ -436,10 +436,10 @@ AVAILABLE_CLI_OPTIONS = { help="Also download data from inactive pairs.", action="store_true", ), - "use_parallel_download": Arg( - "--use-parallel-download", - help="Use the Parallel Downloader.", - action="store_true", + "no_parallel_download": Arg( + "--no-parallel-download", + help="Disable the Parallel Downloader.", + action="store_false", ), "new_pairs_days": Arg( "--new-pairs-days", diff --git a/freqtrade/configuration/configuration.py b/freqtrade/configuration/configuration.py index b6a0a2f12..6db5f2f86 100644 --- a/freqtrade/configuration/configuration.py +++ b/freqtrade/configuration/configuration.py @@ -377,7 +377,7 @@ class Configuration: ("timeframes", "timeframes --timeframes: {}"), ("days", "Detected --days: {}"), ("include_inactive", "Detected --include-inactive-pairs: {}"), - ("use_parallel_download", "Detected --use-parallel-download: {}"), + ("no_parallel_download", "Detected --no-parallel-download: {}"), ("download_trades", "Detected --dl-trades: {}"), ("convert_trades", "Detected --convert: {} - Converting Trade data to OHCV {}"), ("dataformat_ohlcv", 'Using "{}" to store OHLCV data.'), diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index 4ecf689e7..e1294c261 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -359,7 +359,7 @@ def refresh_backtest_ohlcv_data( data_format: str | None = None, prepend: bool = False, progress_tracker: CustomProgress | None = None, - use_parallel_download: bool = False, + no_parallel_download: bool = False, ) -> list[str]: """ Refresh stored ohlcv data for backtesting and hyperopt operations. @@ -388,7 +388,7 @@ def refresh_backtest_ohlcv_data( for timeframe in timeframes: # Get fast candles via parallel method on first loop through per timeframe # and candle type. Downloads all the pairs in the list and stores them. - if use_parallel_download and ( + if no_parallel_download and ( ((pair, timeframe, candle_type) not in fast_candles) and (erase is False) and (prepend is False) @@ -786,7 +786,7 @@ def download_data( trading_mode=config.get("trading_mode", "spot"), prepend=config.get("prepend_data", False), progress_tracker=progress_tracker, - use_parallel_download=config.get("use_parallel_download", False), + no_parallel_download=config.get("no_parallel_download", False), ) finally: if pairs_not_available: