From bbafb1dabd8fce8ba018f851a4d93f288a4e794f Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 9 Dec 2025 13:54:05 +0100 Subject: [PATCH] fix: deduplicate list before downloading This avoids duplicate downloads, for example on hyperliquid, which uses "futures" as mark candle type. --- freqtrade/data/history/history_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/data/history/history_utils.py b/freqtrade/data/history/history_utils.py index d370a80aa..13b7101cd 100644 --- a/freqtrade/data/history/history_utils.py +++ b/freqtrade/data/history/history_utils.py @@ -407,7 +407,8 @@ def refresh_backtest_ohlcv_data( # All exchanges need FundingRate for futures trading. # The timeframe is aligned to the mark-price timeframe. timeframes_with_candletype.append((tf_funding_rate, CandleType.FUNDING_RATE)) - + # Deduplicate list ... + timeframes_with_candletype = list(dict.fromkeys(timeframes_with_candletype)) logger.debug( "Downloading %s.", ", ".join(f'"{tf} {ct}"' for tf, ct in timeframes_with_candletype) )