From 92ad35316928cd9eba881b82d0d453988cfd7adb Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 26 Feb 2022 20:13:24 +0100 Subject: [PATCH] Fix OKX exception --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 2eac0d05a..092420eab 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -2320,7 +2320,7 @@ class Exchange: :return: (maintenance margin ratio, maintenance amount) """ - if self.exchange_has('fetchLeverageTiers'): + if self.exchange_has('fetchLeverageTiers') or self.exchange_has('fetchMarketLeverageTiers'): if pair not in self._leverage_tiers: raise InvalidOrderException(