set margin mode exchange function

This commit is contained in:
Sam Germain 2021-09-01 23:40:32 -06:00
parent 3a4d247b64
commit 39fe381473
1 changed files with 3 additions and 0 deletions

View File

@ -1590,6 +1590,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)