Reduce funding fee update calls

Funding fees update every 4-8 hours - calling this every 15 minutes is way overboard.
This commit is contained in:
Matthias
2023-10-12 07:13:30 +02:00
parent e81929bc55
commit 69264cc164
2 changed files with 11 additions and 11 deletions

View File

@@ -5917,16 +5917,16 @@ def test_get_valid_price(mocker, default_conf_usdt) -> None:
@pytest.mark.parametrize('trading_mode,calls,t1,t2', [
('spot', 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"),
('margin', 0, "2021-09-01 00:00:00", "2021-09-01 08:00:00"),
('futures', 31, "2021-09-01 00:00:02", "2021-09-01 08:00:01"),
('futures', 32, "2021-08-31 23:59:59", "2021-09-01 08:00:01"),
('futures', 32, "2021-09-01 00:00:02", "2021-09-01 08:00:02"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:02"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:03"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:04"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:05"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:06"),
('futures', 33, "2021-08-31 23:59:59", "2021-09-01 08:00:07"),
('futures', 33, "2021-08-31 23:59:58", "2021-09-01 08:00:07"),
('futures', 15, "2021-09-01 00:00:02", "2021-09-01 08:00:01"),
('futures', 16, "2021-08-31 23:59:59", "2021-09-01 08:00:01"),
('futures', 16, "2021-09-01 00:00:02", "2021-09-01 08:00:02"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:02"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:03"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:04"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:05"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:06"),
('futures', 17, "2021-08-31 23:59:59", "2021-09-01 08:00:07"),
('futures', 17, "2021-08-31 23:59:58", "2021-09-01 08:00:07"),
])
def test_update_funding_fees_schedule(mocker, default_conf, trading_mode, calls, time_machine,
t1, t2):