Skip to content

Commit ce024c7

Browse files
committed
fix binance futures candle type hardcoding
1 parent 193cfb6 commit ce024c7

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
@@ -400,7 +400,7 @@ async def _async_get_trade_history_id(
400400
since = max(since, listing_date)
401401

402402
_, res = await download_archive_trades(
403-
CandleType.SPOT,
403+
CandleType.FUTURES if self.trading_mode == "futures" else CandleType.SPOT,
404404
pair,
405405
since_ms=since,
406406
until_ms=until,

0 commit comments

Comments
 (0)