exchange.set_margin_mode param swap

This commit is contained in:
Sam Germain 2022-02-01 22:24:48 -06:00
parent 386be2d889
commit 8a64f6a27f

View File

@ -1880,7 +1880,7 @@ class Exchange:
return
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:
raise DDosProtection(e) from e
except (ccxt.NetworkError, ccxt.ExchangeError) as e: