chore: Convert page number to string to ensure type compatibility

This commit is contained in:
liuweiqing 2024-11-09 11:25:31 +08:00
parent 3300d25e57
commit 00318be59f

View File

@ -168,7 +168,7 @@ class MarketCapPairList(IPairList):
if not self._categories:
pages_required = math.ceil(self._max_rank / 250)
for page in range(1, pages_required + 1):
default_kwargs["page"] = page
default_kwargs["page"] = str(page)
page_data = self._coingecko.get_coins_markets(**default_kwargs)
data.extend(page_data)
else: