test_ccxt_compat maintenanceMarginRatio -> maintenanceMarginRate
This commit is contained in:
parent
df86300729
commit
2015e9345d
@ -363,7 +363,7 @@ class TestCCXTExchange():
|
|||||||
oldMaintenanceMarginRate = oldNotionalFloor = oldNotionalCap = -1
|
oldMaintenanceMarginRate = oldNotionalFloor = oldNotionalCap = -1
|
||||||
for tier in pair_tiers:
|
for tier in pair_tiers:
|
||||||
for key in [
|
for key in [
|
||||||
'maintenanceMarginRatio', # TODO-lev: Change to maintenanceMarginRate
|
'maintenanceMarginRate',
|
||||||
'notionalFloor',
|
'notionalFloor',
|
||||||
'notionalCap',
|
'notionalCap',
|
||||||
'maxLeverage'
|
'maxLeverage'
|
||||||
@ -372,11 +372,11 @@ class TestCCXTExchange():
|
|||||||
assert tier[key] >= 0.0
|
assert tier[key] >= 0.0
|
||||||
assert tier['notionalCap'] > tier['notionalFloor']
|
assert tier['notionalCap'] > tier['notionalFloor']
|
||||||
assert tier['maxLeverage'] <= oldLeverage
|
assert tier['maxLeverage'] <= oldLeverage
|
||||||
assert tier['maintenanceMarginRatio'] >= oldMaintenanceMarginRate
|
assert tier['maintenanceMarginRate'] >= oldMaintenanceMarginRate
|
||||||
assert tier['notionalFloor'] > oldNotionalFloor
|
assert tier['notionalFloor'] > oldNotionalFloor
|
||||||
assert tier['notionalCap'] > oldNotionalCap
|
assert tier['notionalCap'] > oldNotionalCap
|
||||||
oldLeverage = tier['maxLeverage']
|
oldLeverage = tier['maxLeverage']
|
||||||
oldMaintenanceMarginRate = tier['maintenanceMarginRatio']
|
oldMaintenanceMarginRate = tier['maintenanceMarginRate']
|
||||||
oldNotionalFloor = tier['notionalFloor']
|
oldNotionalFloor = tier['notionalFloor']
|
||||||
oldNotionalCap = tier['notionalCap']
|
oldNotionalCap = tier['notionalCap']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user