Skip to content

batch_size variable issue #6

Description

@nickslept

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions