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}"
|
f"{self.name}.margin_mode must be set for {self.trading_mode.value}"
|
||||||
)
|
)
|
||||||
self._api.set_leverage(
|
self._api.set_leverage(
|
||||||
leverage,
|
leverage=leverage,
|
||||||
pair,
|
symbol=pair,
|
||||||
params={
|
params={
|
||||||
"mgnMode": self.margin_mode.value,
|
"mgnMode": self.margin_mode.value,
|
||||||
"posSide": "long" if side == "buy" else "short",
|
"posSide": "long" if side == "buy" else "short",
|
||||||
|
Loading…
Reference in New Issue
Block a user