test: test futures data with online exchanges

This commit is contained in:
Matthias
2025-12-08 17:07:26 +01:00
parent 96849fcafe
commit 00f687f3f5

View File

@@ -311,6 +311,8 @@ class TestCCXTExchange:
[ [
CandleType.FUTURES, CandleType.FUTURES,
CandleType.FUNDING_RATE, CandleType.FUNDING_RATE,
CandleType.INDEX,
CandleType.PREMIUMINDEX,
CandleType.MARK, CandleType.MARK,
], ],
) )
@@ -324,6 +326,10 @@ class TestCCXTExchange:
timeframe = exchange._ft_has.get( timeframe = exchange._ft_has.get(
"funding_fee_timeframe", exchange._ft_has["mark_ohlcv_timeframe"] "funding_fee_timeframe", exchange._ft_has["mark_ohlcv_timeframe"]
) )
else:
# never skip funding rate!
if not exchange.check_candle_type_support(candle_type):
pytest.skip(f"Exchange does not support candle type {candle_type}")
self._ccxt__async_get_candle_history( self._ccxt__async_get_candle_history(
exchange, exchange,
pair=pair, pair=pair,