Added get_interest template method in exchange
This commit is contained in:
parent
54dd9ce7ad
commit
ebf5310817
@ -1573,6 +1573,16 @@ class Exchange:
|
||||
def transfer(self, asset: str, amount: float, frm: str, to: str, pair: Optional[str]):
|
||||
self._api.transfer(asset, amount, frm, to)
|
||||
|
||||
def get_isolated_liq(self, pair: str, open_rate: float,
|
||||
amount: float, leverage: float, is_short: bool) -> float:
|
||||
raise OperationalException(
|
||||
f"Isolated margin is not available on {self.name} using freqtrade"
|
||||
)
|
||||
|
||||
def get_interest_rate(self, pair: str, open_rate: float, is_short: bool) -> float:
|
||||
# TODO-mg: implement
|
||||
return 0.0005
|
||||
|
||||
|
||||
def is_exchange_known_ccxt(exchange_name: str, ccxt_module: CcxtModuleType = None) -> bool:
|
||||
return exchange_name in ccxt_exchanges(ccxt_module)
|
||||
|
Loading…
Reference in New Issue
Block a user