chore: invert "parallel download" option

This commit is contained in:
Matthias
2025-08-27 10:15:04 +02:00
parent 4e2ccfc091
commit 489cd008d6
4 changed files with 9 additions and 9 deletions

View File

@@ -156,7 +156,7 @@ ARGS_DOWNLOAD_DATA = [
"days",
"new_pairs_days",
"include_inactive",
"use_parallel_download",
"no_parallel_download",
"timerange",
"download_trades",
"convert_trades",

View File

@@ -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",

View File

@@ -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.'),

View File

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