Fix OKX exception
This commit is contained in:
parent
12a1e27708
commit
92ad353169
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user