From 17009ac59f539869b687bd2103c8c33d4e4d9bea Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 6 Dec 2025 13:53:18 +0100 Subject: [PATCH] chore: allow non-matching funding timeframe - as timeframe doesn't actually matter any longer. --- freqtrade/exchange/exchange.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index b41d1a9fb..381a05044 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2698,7 +2698,7 @@ class Exchange: CandleType.SPOT, CandleType.FUTURES, ) - if invalid_timeframe or invalid_funding: + if invalid_timeframe: timeframes_ = ( ", ".join(self.timeframes) if candle_type != CandleType.FUNDING_RATE @@ -2710,6 +2710,13 @@ class Exchange: f"{timeframes_}." ) continue + if invalid_funding: + # TODO: does this message make sense? would docs be better? + # if any, this should be cached to avoid log spam! + logger.warning( + f"Wrong funding rate timeframe {timeframe} for pair {pair}, " + f"downloading {self.get_option('funding_fee_timeframe')} instead." + ) if ( (pair, timeframe, candle_type) not in self._klines