Add explicit test for okx lev_prep

This commit is contained in:
Matthias
2023-03-20 19:27:48 +01:00
parent 7b5e322ef2
commit 97c420b2df
2 changed files with 32 additions and 1 deletions

View File

@@ -128,7 +128,6 @@ class Okx(Exchange):
def _lev_prep(self, pair: str, leverage: float, side: BuySell):
if self.trading_mode != TradingMode.SPOT and self.margin_mode is not None:
try:
# TODO-lev: Test me properly (check mgnMode passed)
res = self._api.set_leverage(
leverage=leverage,
symbol=pair,