binance.fill_leverage_brackets remove excess bracket

This commit is contained in:
Sam Germain 2022-01-19 21:36:54 -06:00
parent e4b37c6462
commit caff7e227f

View File

@ -155,9 +155,8 @@ class Binance(Exchange):
brackets = []
for [notional_floor, mm_ratio] in brkts:
amt = (
(
(float(notional_floor) * (float(mm_ratio) - float(old_ratio)))
) + amt
(float(notional_floor) * (float(mm_ratio) - float(old_ratio)))
+ amt
) if old_ratio else 0.0
old_ratio = mm_ratio
brackets.append([