test: fix candle-limit live test

This commit is contained in:
Matthias
2026-02-05 19:42:23 +01:00
parent 4a578148e2
commit 06ed6e6b23
2 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ EXCHANGES = {
"candle_count": 1000,
"futures": True,
"futures_pair": "BTC/USDT:USDT",
"candle_count_futures": 1500,
"hasQuoteVolumeFutures": True,
"leverage_tiers_public": False,
"leverage_in_spot_market": False,
@@ -244,6 +245,7 @@ EXCHANGES = {
"candle_count": 1000,
"futures": True,
"futures_pair": "BTC/USDT:USDT",
"candle_count_futures": 1999,
"hasQuoteVolumeFutures": True,
"leverage_tiers_public": True,
"leverage_in_spot_market": True,

View File

@@ -58,11 +58,13 @@ class TestCCXTExchange:
def test_ohlcv_limit_futures(self, exchange_futures: EXCHANGE_FIXTURE_TYPE):
exch, exchangename = exchange_futures
expected_count = EXCHANGES[exchangename].get("candle_count")
expected_count = EXCHANGES[exchangename].get(
"candle_count_futures", EXCHANGES[exchangename].get("candle_count")
)
if not expected_count:
pytest.skip("No expected candle count for exchange")
assert exch.ohlcv_candle_limit("1m", CandleType.SPOT) == expected_count
assert exch.ohlcv_candle_limit("1m", CandleType.FUTURES) == expected_count
def test_load_markets_futures(self, exchange_futures: EXCHANGE_FIXTURE_TYPE):
exchange, exchangename = exchange_futures