All funding fee test_exchange tests pass

This commit is contained in:
Sam Germain
2021-11-01 07:52:40 -06:00
parent 863e0bf837
commit 3de42da29a
2 changed files with 27 additions and 8 deletions

View File

@@ -1743,6 +1743,7 @@ class Exchange:
except ccxt.BaseError as e:
raise OperationalException(e) from e
@retrier
def _get_mark_price_history(
self,
pair: str,
@@ -1784,7 +1785,7 @@ class Exchange:
pair: str,
amount: float,
open_date: datetime,
close_date: Optional[datetime]
close_date: Optional[datetime] = None
) -> float:
"""
calculates the sum of all funding fees that occurred for a pair during a futures trade
@@ -1816,6 +1817,7 @@ class Exchange:
return fees
@retrier
def get_funding_rate_history(
self,
pair: str,