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 = [] brackets = []
for [notional_floor, mm_ratio] in brkts: for [notional_floor, mm_ratio] in brkts:
amt = ( amt = (
(
(float(notional_floor) * (float(mm_ratio) - float(old_ratio))) (float(notional_floor) * (float(mm_ratio) - float(old_ratio)))
) + amt + amt
) if old_ratio else 0.0 ) if old_ratio else 0.0
old_ratio = mm_ratio old_ratio = mm_ratio
brackets.append([ brackets.append([