Remove unnecessary check

This commit is contained in:
Matthias 2022-08-18 14:53:44 +02:00
parent 075e9b8526
commit fde469a253

View File

@ -2406,7 +2406,6 @@ class Exchange:
if self.trading_mode in TradingMode.SPOT: if self.trading_mode in TradingMode.SPOT:
return None return None
elif ( elif (
self.margin_mode == MarginMode.ISOLATED and
self.trading_mode == TradingMode.FUTURES self.trading_mode == TradingMode.FUTURES
): ):
wallet_balance = (amount * open_rate) / leverage wallet_balance = (amount * open_rate) / leverage
@ -2422,7 +2421,7 @@ class Exchange:
return isolated_liq return isolated_liq
else: else:
raise OperationalException( 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): def funding_fee_cutoff(self, open_date: datetime):
""" """