Skip to main content

Module gamma

Module gamma 

Source
Expand description

Provides the HTTP client for the Polymarket Gamma API.

Gamma /markets server-side constraints honored by the paginator and load_ids chunker:

  • limit is silently capped at 100 items per page, so a larger requested limit makes the “last page” check (page_len < page_size) trip after page one.
  • offset > 10000 is rejected with HTTP 422, so a paginator cannot walk the full universe; callers fetching many markets must use condition_ids= filtering.
  • condition_ids= accepts at most 100 IDs per request, so load_ids for larger sets chunks the request and unions the responses.

Structs§

PolymarketGammaHttpClient
Provides a domain HTTP client for Polymarket instrument fetching.
PolymarketGammaRawHttpClient
Provides a raw HTTP client for the Polymarket Gamma API.