feat: enhance data fetching logic with pagination to increase market cap rank limit

This commit is contained in:
liuweiqing
2024-11-08 14:50:21 +08:00
parent 12560e983c
commit 3300d25e57
2 changed files with 10 additions and 5 deletions

View File

@@ -2458,10 +2458,10 @@ def test_MarketCapPairList_exceptions(mocker, default_conf_usdt):
PairListManager(exchange, default_conf_usdt)
default_conf_usdt["pairlists"] = [
{"method": "MarketCapPairList", "number_assets": 20, "max_rank": 260}
{"method": "MarketCapPairList", "number_assets": 20, "max_rank": 1010}
]
with pytest.raises(
OperationalException, match="This filter only support marketcap rank up to 250."
OperationalException, match="This filter only support marketcap rank up to 1000."
):
PairListManager(exchange, default_conf_usdt)