Wrote dummy tests for exchange.get_interest_rate

This commit is contained in:
Sam Germain
2021-09-03 19:56:13 -06:00
parent 9b953f6e60
commit 9d398924c6
2 changed files with 33 additions and 5 deletions

View File

@@ -1521,9 +1521,9 @@ class Exchange:
self._async_get_trade_history(pair=pair, since=since,
until=until, from_id=from_id))
def get_interest_rate(self, pair: str, open_rate: float, is_short: bool) -> float:
def get_interest_rate(self, pair: str, maker_or_taker: str, is_short: bool) -> float:
# TODO-lev: implement
return 0.0005
return (0.0005, 0.0005)
def fill_leverage_brackets(self):
"""