From caff7e227f81c5e974ee257c14ce3c97e36d1d11 Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Wed, 19 Jan 2022 21:36:54 -0600 Subject: [PATCH] binance.fill_leverage_brackets remove excess bracket --- freqtrade/exchange/binance.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freqtrade/exchange/binance.py b/freqtrade/exchange/binance.py index e1623025a..76dd2fef4 100644 --- a/freqtrade/exchange/binance.py +++ b/freqtrade/exchange/binance.py @@ -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([