Fix ccxt test gateio flukyness
This commit is contained in:
parent
f9668ede4a
commit
50c19ece53
@ -199,8 +199,13 @@ class TestCCXTExchange():
|
|||||||
l2 = exchange.fetch_l2_order_book(pair)
|
l2 = exchange.fetch_l2_order_book(pair)
|
||||||
assert 'asks' in l2
|
assert 'asks' in l2
|
||||||
assert 'bids' in l2
|
assert 'bids' in l2
|
||||||
|
assert len(l2['asks']) >= 1
|
||||||
|
assert len(l2['bids']) >= 1
|
||||||
l2_limit_range = exchange._ft_has['l2_limit_range']
|
l2_limit_range = exchange._ft_has['l2_limit_range']
|
||||||
l2_limit_range_required = exchange._ft_has['l2_limit_range_required']
|
l2_limit_range_required = exchange._ft_has['l2_limit_range_required']
|
||||||
|
if exchangename == 'gateio':
|
||||||
|
# TODO: Gateio is unstable here at the moment, ignoring the limit partially.
|
||||||
|
return
|
||||||
for val in [1, 2, 5, 25, 100]:
|
for val in [1, 2, 5, 25, 100]:
|
||||||
l2 = exchange.fetch_l2_order_book(pair, val)
|
l2 = exchange.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:
|
||||||
|
Loading…
Reference in New Issue
Block a user