Use kwargs for set_leverage

This commit is contained in:
Matthias 2022-02-15 18:56:58 +01:00
parent c37f03a638
commit 33cc5e0ac7

View File

@ -42,8 +42,8 @@ class Okx(Exchange):
f"{self.name}.margin_mode must be set for {self.trading_mode.value}"
)
self._api.set_leverage(
leverage,
pair,
leverage=leverage,
symbol=pair,
params={
"mgnMode": self.margin_mode.value,
"posSide": "long" if side == "buy" else "short",