mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 20:01:18 +00:00
fix: "price" shouldn't be sent for regular futures candles
This commit is contained in:
@@ -2799,7 +2799,7 @@ class Exchange:
|
|||||||
timeframe, candle_type=candle_type, since_ms=since_ms
|
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})
|
params.update({"price": candle_type.value})
|
||||||
if candle_type != CandleType.FUNDING_RATE:
|
if candle_type != CandleType.FUNDING_RATE:
|
||||||
data = await self._api_async.fetch_ohlcv(
|
data = await self._api_async.fetch_ohlcv(
|
||||||
|
|||||||
Reference in New Issue
Block a user