okex loads all leverage tiers at beginning, removed get tiers for pair

This commit is contained in:
Sam Germain
2022-02-11 06:50:23 -06:00
parent 8657e99c26
commit 7a0f7da128
4 changed files with 27 additions and 148 deletions

View File

@@ -162,5 +162,4 @@ def test_get_max_pair_stake_amount_okex(default_conf, mocker, leverage_tiers):
assert exchange.get_max_pair_stake_amount('BTC/USDT', 1.0) == 1000000000
assert exchange.get_max_pair_stake_amount('BTC/USDT', 1.0, 10.0) == 100000000
exchange.get_leverage_tiers_for_pair = MagicMock(return_value=None)
assert exchange.get_max_pair_stake_amount('TTT/USDT', 1.0) == float('inf') # Not in tiers