binance.fill_leverage_brackets remove excess bracket
This commit is contained in:
parent
e4b37c6462
commit
caff7e227f
@ -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([
|
||||||
|
Loading…
Reference in New Issue
Block a user