Fix OKX exception

This commit is contained in:
Matthias 2022-02-26 20:13:24 +01:00
parent 12a1e27708
commit 92ad353169

View File

@ -2320,7 +2320,7 @@ class Exchange:
:return: (maintenance margin ratio, maintenance amount) :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: if pair not in self._leverage_tiers:
raise InvalidOrderException( raise InvalidOrderException(