fix: new_pair logic for binance won't work on funding rates

closes #11680
This commit is contained in:
Matthias
2025-04-25 16:18:12 +02:00
parent 073b625355
commit 903b580026
+1 -1
View File
@@ -143,7 +143,7 @@ class Binance(Exchange):
Does not work for other exchanges, which don't return the earliest data when called with "0" Does not work for other exchanges, which don't return the earliest data when called with "0"
:param candle_type: Any of the enum CandleType (must match trading mode!) :param candle_type: Any of the enum CandleType (must match trading mode!)
""" """
if is_new_pair: if is_new_pair and candle_type in (CandleType.SPOT, CandleType.FUTURES, CandleType.MARK):
with self._loop_lock: with self._loop_lock:
x = self.loop.run_until_complete( x = self.loop.run_until_complete(
self._async_get_candle_history(pair, timeframe, candle_type, 0) self._async_get_candle_history(pair, timeframe, candle_type, 0)