Use kwargs for set_leverage
This commit is contained in:
parent
c37f03a638
commit
33cc5e0ac7
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user