@@ -5343,17 +5343,15 @@ def test_get_max_leverage_from_margin(default_conf, mocker, pair, nominal_value,
53435343
53445344
53455345@pytest .mark .parametrize (
5346- "size,funding_rate,mark_price,time_in_ratio, funding_fee" ,
5346+ "size,funding_rate,mark_price,funding_fee" ,
53475347 [
5348- (10 , 0.0001 , 2.0 , 1.0 , 0.002 ),
5349- (10 , 0.0002 , 2.0 , 0.01 , 0. 004 ),
5350- (10 , 0.0002 , 2.5 , None , 0.005 ),
5351- (10 , 0.0002 , nan , None , 0.0 ),
5348+ (10 , 0.0001 , 2.0 , 0.002 ),
5349+ (10 , 0.0002 , 2.0 , 0.004 ),
5350+ (10 , 0.0002 , 2.5 , 0.005 ),
5351+ (10 , 0.0002 , nan , 0.0 ),
53525352 ],
53535353)
5354- def test_calculate_funding_fees (
5355- default_conf , mocker , size , funding_rate , mark_price , funding_fee , time_in_ratio
5356- ):
5354+ def test_calculate_funding_fees (default_conf , mocker , size , funding_rate , mark_price , funding_fee ):
53575355 exchange = get_patched_exchange (mocker , default_conf )
53585356 prior_date = timeframe_to_prev_date ("1h" , datetime .now (UTC ) - timedelta (hours = 1 ))
53595357 trade_date = timeframe_to_prev_date ("1h" , datetime .now (UTC ))
@@ -5378,7 +5376,6 @@ def test_calculate_funding_fees(
53785376 is_short = True ,
53795377 open_date = trade_date ,
53805378 close_date = trade_date ,
5381- time_in_ratio = time_in_ratio ,
53825379 )
53835380 == funding_fee
53845381 )
0 commit comments