Added test_update_funding_fees in freqtradebot, test currently fails

This commit is contained in:
Sam Germain
2021-11-03 22:52:37 -06:00
parent 3de42da29a
commit 8a4236198f
4 changed files with 133 additions and 40 deletions

View File

@@ -1807,8 +1807,8 @@ class Exchange:
int(open_date.timestamp() * 1000)
)
for date in self._get_funding_fee_dates(open_date, close_date):
funding_rate = funding_rate_history[int(date.timestamp()) * 1000]
mark_price = mark_price_history[int(date.timestamp()) * 1000]
funding_rate = funding_rate_history[int(date.timestamp() * 1000)]
mark_price = mark_price_history[int(date.timestamp() * 1000)]
fees += self._get_funding_fee(
contract_size=amount,
mark_price=mark_price,