Add kucoin exchange subclass

Kucoin has some specific orderbook restrictions

closes #4723
This commit is contained in:
Matthias
2021-04-13 12:28:07 +02:00
parent b0bd73272c
commit e4bb6b1582
6 changed files with 49 additions and 10 deletions

View File

@@ -1641,6 +1641,9 @@ def test_get_next_limit_in_list():
# Going over the limit ...
assert Exchange.get_next_limit_in_list(1001, limit_range) == 1000
assert Exchange.get_next_limit_in_list(2000, limit_range) == 1000
# Without required range
assert Exchange.get_next_limit_in_list(2000, limit_range, False) is None
assert Exchange.get_next_limit_in_list(15, limit_range, False) == 20
assert Exchange.get_next_limit_in_list(21, None) == 21
assert Exchange.get_next_limit_in_list(100, None) == 100