test_get_liquidation_price/test_get_maintenance_ratio_and_amt_binance/fill_leverage_brackets/test_validate_trading_mode_and_collateral TODO comments
This commit is contained in:
@@ -156,7 +156,7 @@ class Binance(Exchange):
|
||||
for [notional_floor, mm_ratio] in brkts:
|
||||
amt = (
|
||||
(
|
||||
(float(notional_floor) * (float(mm_ratio)) - float(old_ratio))
|
||||
(float(notional_floor) * (float(mm_ratio) - float(old_ratio)))
|
||||
) + amt
|
||||
) if old_ratio else 0.0
|
||||
old_ratio = mm_ratio
|
||||
|
Reference in New Issue
Block a user