From fde469a2534d627bb1f5e1535c9a271259e02fcc Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Aug 2022 14:53:44 +0200 Subject: [PATCH] Remove unnecessary check --- freqtrade/exchange/exchange.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index ef5b96096..e415e2b6c 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2406,7 +2406,6 @@ class Exchange: if self.trading_mode in TradingMode.SPOT: return None elif ( - self.margin_mode == MarginMode.ISOLATED and self.trading_mode == TradingMode.FUTURES ): wallet_balance = (amount * open_rate) / leverage @@ -2422,7 +2421,7 @@ class Exchange: return isolated_liq else: raise OperationalException( - "Freqtrade only supports isolated futures for leverage trading") + "Freqtrade currently only supports futures for leverage trading.") def funding_fee_cutoff(self, open_date: datetime): """