BrainResearchHub
Independent research on prediction markets, perpetual futures, and trading infrastructure

Polymarket API Guide: CLOB, Gamma, and Data API (2026)

Ahmed Trading· sdk · Updated October 2026

Polymarket’s API surface splits into three public services — Gamma (market discovery), the CLOB (trading and prices), and the Data API (accounts and history) — plus WebSocket streams for live updates. Authentication is two-layer: your wallet signs once to derive API credentials (L2), and those credentials sign every subsequent request.

What does each API do?

API Base URL Role
Gamma gamma-api.polymarket.com Events, markets, tags, search
CLOB clob.polymarket.com Order books, prices, order placement
Data API data-api.polymarket.com Trades, positions, activity, leaderboards
Bridge bridge.polymarket.com Cross-chain deposits
WebSocket CLOB streams Live book updates and fills

Gamma answers “what exists” — events, their markets, resolution rules, tags. The CLOB answers “what’s the price and how do I trade it.” The Data API answers “what happened” — trade history, positions, user activity. Most integrations touch all three in one loop.

How does authentication work?

Layer Mechanism Used for
L1 EIP-712 wallet signature Order signing (the private key itself)
L2 HMAC with derived API key, secret, passphrase Every REST call to CLOB/Data

The flow: sign a one-time request with your wallet → receive apiKey, secret, passphrase → attach them as headers on subsequent calls. Public market data (books, prices, Gamma) needs no auth at all.

What are the key endpoints?

Gamma (discovery):

CLOB (trading):

Data API (accounts):

What changed in the 2026 V2 migration?

Which mistakes break integrations?

  1. Polling instead of streaming — WebSocket channels exist for books and fills; REST polling wastes your rate-limit budget and lags
  2. Ignoring geoblocking — Polymarket US and perps have separate APIs; hitting the wrong surface from a restricted IP fails confusingly
  3. Hardcoding py-clob-client v1 imports — the most common 2026 breakage
  4. Missing clock sync — signed requests with stale timestamps are rejected; sync against the time endpoint
  5. Treating v1 rate limits as current — per-signer buckets changed the math for active bots

FAQ

Q: Is the Polymarket API free? A: Yes — all three public APIs are free within rate limits. Only trading requires auth and collateral.

Q: What’s the difference between Gamma and the CLOB? A: Gamma is the catalog (what markets exist, their rules); the CLOB is the exchange (live prices, books, order placement). Discovery flows Gamma → CLOB.

Q: Do I need API keys to read prices? A: No — public market data (books, prices, Gamma listings) is unauthenticated. Keys are required for order placement and private account data.

Q: Which SDK should I use in 2026? A: py-clob-client-v2 for Python (the official package since the April 2026 migration); TypeScript clients exist in the official ecosystem for JS stacks.

Q: Where did the leaderboard API go? A: Into the Data API — older integrations pointed at a separate host; that’s deprecated. Update your base URLs.

Sources

Disclaimer

Not financial advice. Educational purposes only. Updated October 2026.