mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
test_ccxt_compat maintenanceMarginRatio -> maintenanceMarginRate
This commit is contained in:
parent
df86300729
commit
2015e9345d
|
@ -363,7 +363,7 @@ class TestCCXTExchange():
|
|||
oldMaintenanceMarginRate = oldNotionalFloor = oldNotionalCap = -1
|
||||
for tier in pair_tiers:
|
||||
for key in [
|
||||
'maintenanceMarginRatio', # TODO-lev: Change to maintenanceMarginRate
|
||||
'maintenanceMarginRate',
|
||||
'notionalFloor',
|
||||
'notionalCap',
|
||||
'maxLeverage'
|
||||
|
@ -372,11 +372,11 @@ class TestCCXTExchange():
|
|||
assert tier[key] >= 0.0
|
||||
assert tier['notionalCap'] > tier['notionalFloor']
|
||||
assert tier['maxLeverage'] <= oldLeverage
|
||||
assert tier['maintenanceMarginRatio'] >= oldMaintenanceMarginRate
|
||||
assert tier['maintenanceMarginRate'] >= oldMaintenanceMarginRate
|
||||
assert tier['notionalFloor'] > oldNotionalFloor
|
||||
assert tier['notionalCap'] > oldNotionalCap
|
||||
oldLeverage = tier['maxLeverage']
|
||||
oldMaintenanceMarginRate = tier['maintenanceMarginRatio']
|
||||
oldMaintenanceMarginRate = tier['maintenanceMarginRate']
|
||||
oldNotionalFloor = tier['notionalFloor']
|
||||
oldNotionalCap = tier['notionalCap']
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user