exchange.set_margin_mode param swap
This commit is contained in:
parent
386be2d889
commit
8a64f6a27f
@ -1880,7 +1880,7 @@ class Exchange:
|
|||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self._api.set_margin_mode(pair, margin_mode.value, params)
|
self._api.set_margin_mode(margin_mode.value, pair, params)
|
||||||
except ccxt.DDoSProtection as e:
|
except ccxt.DDoSProtection as e:
|
||||||
raise DDosProtection(e) from e
|
raise DDosProtection(e) from e
|
||||||
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user