fetch-markets stops after 100 markets due to incorrect batch_size
In polymarket/cli/main.py line 474, batch_size is set to 500 inside cmd_fetch_markets, but the Gamma API returns a maximum of 100 markets per page. Since len(markets) < batch_size (100 < 500) is always true, the function stops after the first page thinking it has reached the end.
Fix: change batch_size = 500 to batch_size = 100.
fetch-markets stops after 100 markets due to incorrect batch_size
In polymarket/cli/main.py line 474, batch_size is set to 500 inside cmd_fetch_markets, but the Gamma API returns a maximum of 100 markets per page. Since len(markets) < batch_size (100 < 500) is always true, the function stops after the first page thinking it has reached the end.
Fix: change batch_size = 500 to batch_size = 100.