Split funding fee calculation from Download

This commit is contained in:
Matthias
2022-01-08 11:01:14 +01:00
parent f090dcc597
commit ef3a1ea8f2
3 changed files with 35 additions and 9 deletions

View File

@@ -280,7 +280,7 @@ class TestCCXTExchange():
pair = EXCHANGES[exchangename].get('futures_pair', EXCHANGES[exchangename]['pair'])
since = datetime.now(timezone.utc) - timedelta(days=5)
funding_fee = exchange._calculate_funding_fees(pair, 20, open_date=since)
funding_fee = exchange._fetch_and_calculate_funding_fees(pair, 20, open_date=since)
assert isinstance(funding_fee, float)
# assert funding_fee > 0