Fix fee test

This commit is contained in:
Matthias
2022-01-18 07:40:09 +01:00
parent a0c0c4dcbe
commit d3713cf245
2 changed files with 11 additions and 8 deletions

View File

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