fix: "price" shouldn't be sent for regular futures candles

This commit is contained in:
Matthias
2025-09-09 19:18:28 +02:00
parent 068caf159d
commit 6cfd31c705

View File

@@ -2799,7 +2799,7 @@ class Exchange:
timeframe, candle_type=candle_type, since_ms=since_ms
)
if candle_type and candle_type != CandleType.SPOT:
if candle_type and candle_type not in (CandleType.SPOT, CandleType.FUTURES):
params.update({"price": candle_type.value})
if candle_type != CandleType.FUNDING_RATE:
data = await self._api_async.fetch_ohlcv(