From 073426f25c8ea297534eae467c2e148e788e49cf Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Wed, 1 Sep 2021 23:40:32 -0600 Subject: [PATCH] set margin mode exchange function --- freqtrade/exchange/exchange.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index aae8eb08e..8ab568145 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -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)