set margin mode exchange function

This commit is contained in:
Sam Germain 2021-09-01 23:40:32 -06:00
parent e5b2b64a3f
commit 073426f25c

View File

@ -1557,6 +1557,9 @@ class Exchange:
except ccxt.BaseError as e:
raise OperationalException(e) from e
def set_margin_mode(self, symbol, marginType, params={}):
self._api.set_margin_mode(symbol, marginType, params)
def is_exchange_known_ccxt(exchange_name: str, ccxt_module: CcxtModuleType = None) -> bool:
return exchange_name in ccxt_exchanges(ccxt_module)