get_max_leverage test clean up
This commit is contained in:
parent
4a1ed01708
commit
a6043e6a85
@ -192,7 +192,7 @@ def test_get_max_leverage_binance(default_conf, mocker, leverage_tiers):
|
||||
assert exchange.get_max_leverage("BTC/USDT", 300000000) == 2.0
|
||||
assert exchange.get_max_leverage("BTC/USDT", 600000000) == 1.0 # Last tier
|
||||
|
||||
assert exchange.get_max_leverage("ETC/USDT", 200) == 1.0 # Pair not in leverage_tiers
|
||||
assert exchange.get_max_leverage("SPONGE/USDT", 200) == 1.0 # Pair not in leverage_tiers
|
||||
assert exchange.get_max_leverage("BTC/USDT", 0.0) == 125.0 # No stake amount
|
||||
with pytest.raises(
|
||||
InvalidOrderException,
|
||||
|
@ -3569,11 +3569,6 @@ def test_get_max_leverage_from_markets(default_conf, mocker, pair, nominal_value
|
||||
assert exchange.get_max_leverage(pair, nominal_value) == max_lev
|
||||
|
||||
|
||||
def test_get_max_leverage_from_tiers(default_conf, mocker):
|
||||
# TODO-lev:
|
||||
return
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'size,funding_rate,mark_price,time_in_ratio,funding_fee,kraken_fee', [
|
||||
(10, 0.0001, 2.0, 1.0, 0.002, 0.002),
|
||||
|
Loading…
Reference in New Issue
Block a user