Skip to main content

Module gamma

Module gamma 

Source
Expand description

Provides the HTTP client for the Polymarket Gamma API.

Gamma keyset constraints honored by the paginators and load_ids chunker:

  • /markets/keyset accepts at most 100 items per page.
  • /events/keyset accepts at most 500 items per page.
  • Keyset endpoints reject offset; the paginators apply a requested initial offset locally for compatibility.
  • Missing next_cursor ends pagination; a full final page can still include one.
  • condition_ids= accepts at most 100 IDs per request, so load_ids for larger sets chunks the request and unions the responses. condition_ids lookups stop at one market per distinct ID, since a redundant cursor request can exceed Gamma’s URI limit (HTTP 414).

Structs§

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