Skip to content

Commit 903b580

Browse files
committed
fix: new_pair logic for binance won't work on funding rates
closes freqtrade#11680
1 parent 073b625 commit 903b580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

freqtrade/exchange/binance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def get_historic_ohlcv(
143143
Does not work for other exchanges, which don't return the earliest data when called with "0"
144144
:param candle_type: Any of the enum CandleType (must match trading mode!)
145145
"""
146-
if is_new_pair:
146+
if is_new_pair and candle_type in (CandleType.SPOT, CandleType.FUTURES, CandleType.MARK):
147147
with self._loop_lock:
148148
x = self.loop.run_until_complete(
149149
self._async_get_candle_history(pair, timeframe, candle_type, 0)

0 commit comments

Comments
 (0)