Add bitmart to ccxt compat tested exchanges
This commit is contained in:
@@ -227,6 +227,7 @@ EXCHANGES = {
|
|||||||
'timeframe': '1h',
|
'timeframe': '1h',
|
||||||
'futures_pair': 'BTC/USDT:USDT',
|
'futures_pair': 'BTC/USDT:USDT',
|
||||||
'futures': True,
|
'futures': True,
|
||||||
|
'orderbook_max_entries': 50,
|
||||||
'leverage_tiers_public': True,
|
'leverage_tiers_public': True,
|
||||||
'leverage_in_spot_market': True,
|
'leverage_in_spot_market': True,
|
||||||
'sample_order': [
|
'sample_order': [
|
||||||
@@ -247,6 +248,13 @@ EXCHANGES = {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
'bitmart': {
|
||||||
|
'pair': 'BTC/USDT',
|
||||||
|
'stake_currency': 'USDT',
|
||||||
|
'hasQuoteVolume': True,
|
||||||
|
'timeframe': '1h',
|
||||||
|
'orderbook_max_entries': 50,
|
||||||
|
},
|
||||||
'huobi': {
|
'huobi': {
|
||||||
'pair': 'ETH/BTC',
|
'pair': 'ETH/BTC',
|
||||||
'stake_currency': 'BTC',
|
'stake_currency': 'BTC',
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ class TestCCXTExchange:
|
|||||||
exch, exchangename = exchange
|
exch, exchangename = exchange
|
||||||
pair = EXCHANGES[exchangename]['pair']
|
pair = EXCHANGES[exchangename]['pair']
|
||||||
l2 = exch.fetch_l2_order_book(pair)
|
l2 = exch.fetch_l2_order_book(pair)
|
||||||
|
orderbook_max_entries = EXCHANGES[exchangename].get('orderbook_max_entries')
|
||||||
assert 'asks' in l2
|
assert 'asks' in l2
|
||||||
assert 'bids' in l2
|
assert 'bids' in l2
|
||||||
assert len(l2['asks']) >= 1
|
assert len(l2['asks']) >= 1
|
||||||
@@ -143,7 +144,7 @@ class TestCCXTExchange:
|
|||||||
# TODO: Gate is unstable here at the moment, ignoring the limit partially.
|
# TODO: Gate is unstable here at the moment, ignoring the limit partially.
|
||||||
return
|
return
|
||||||
for val in [1, 2, 5, 25, 50, 100]:
|
for val in [1, 2, 5, 25, 50, 100]:
|
||||||
if val > 50 and exchangename == 'bybit':
|
if orderbook_max_entries and val > orderbook_max_entries:
|
||||||
continue
|
continue
|
||||||
l2 = exch.fetch_l2_order_book(pair, val)
|
l2 = exch.fetch_l2_order_book(pair, val)
|
||||||
if not l2_limit_range or val in l2_limit_range:
|
if not l2_limit_range or val in l2_limit_range:
|
||||||
|
|||||||
Reference in New Issue
Block a user