test: fix candle-limit live test
This commit is contained in:
@@ -24,6 +24,7 @@ EXCHANGES = {
|
|||||||
"candle_count": 1000,
|
"candle_count": 1000,
|
||||||
"futures": True,
|
"futures": True,
|
||||||
"futures_pair": "BTC/USDT:USDT",
|
"futures_pair": "BTC/USDT:USDT",
|
||||||
|
"candle_count_futures": 1500,
|
||||||
"hasQuoteVolumeFutures": True,
|
"hasQuoteVolumeFutures": True,
|
||||||
"leverage_tiers_public": False,
|
"leverage_tiers_public": False,
|
||||||
"leverage_in_spot_market": False,
|
"leverage_in_spot_market": False,
|
||||||
@@ -244,6 +245,7 @@ EXCHANGES = {
|
|||||||
"candle_count": 1000,
|
"candle_count": 1000,
|
||||||
"futures": True,
|
"futures": True,
|
||||||
"futures_pair": "BTC/USDT:USDT",
|
"futures_pair": "BTC/USDT:USDT",
|
||||||
|
"candle_count_futures": 1999,
|
||||||
"hasQuoteVolumeFutures": True,
|
"hasQuoteVolumeFutures": True,
|
||||||
"leverage_tiers_public": True,
|
"leverage_tiers_public": True,
|
||||||
"leverage_in_spot_market": True,
|
"leverage_in_spot_market": True,
|
||||||
|
|||||||
@@ -58,11 +58,13 @@ class TestCCXTExchange:
|
|||||||
|
|
||||||
def test_ohlcv_limit_futures(self, exchange_futures: EXCHANGE_FIXTURE_TYPE):
|
def test_ohlcv_limit_futures(self, exchange_futures: EXCHANGE_FIXTURE_TYPE):
|
||||||
exch, exchangename = exchange_futures
|
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:
|
if not expected_count:
|
||||||
pytest.skip("No expected candle count for exchange")
|
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):
|
def test_load_markets_futures(self, exchange_futures: EXCHANGE_FIXTURE_TYPE):
|
||||||
exchange, exchangename = exchange_futures
|
exchange, exchangename = exchange_futures
|
||||||
|
|||||||
Reference in New Issue
Block a user