● CLOB V2 · pUSD · verified 2026-06-15
The Polymarket API,
The Polymarket API,
done right.
The complete, current developer reference — Gamma, CLOB & Data, in Python, Rust & Node. No dead v1. Every error fixed. Built by people who actually run bots.
Start building Fix an errorPythonRustNodecurl+ 25 languages
from py_clob_client_v2 import ClobClient book = ClobClient(host="https://clob.polymarket.com", chain_id=137) \ .get_order_book(token_id) print(book.bids[0].price, book.asks[0].price) # 0.62 0.64 → you're talking to Polymarket.
Why developers build here
🦀
Real Rust, not just PythonVerified Rust examples on every page — and Rust is the only client that trades from a deposit wallet today.🧯
Every error, fixedThe errors that live in GitHub-issue walls — order_version_mismatch, balance/allowance, deposit-wallet — solved with cause → fix.🤖
AI-agent readyDrop in our AGENTS.md + llms.txt so Claude Code & Cursor write correct V2 code on the first try.🟢
Current, not staleCLOB V2 / pUSD, py-clob-client-v2. While the rest of the web still says USDC.e and dead v1 — we don't.🌍
25 languagesEvery reference page, localized. No other Polymarket dev resource comes close.🎮
Live tools, no keysSandbox, market search, slug→token, error lookup — all client-side, nothing leaves your browser.Three APIs — which do you need?
| API | Use it for | Auth | Key endpoints |
|---|---|---|---|
| Gamma | Find markets/events, slugs & token IDs | None | /markets /events /public-search |
| CLOB | Order book, prices, place/cancel orders | Keys + signing | /book /price /midpoint /orders |
| Data | History, positions, holders, leaderboard | None | /positions /holders /trades |
| WebSocket | Live book/price & your order updates | User chan = keys | market · user · RTDS |
Pick your path
LearnHow the API worksThe 3 APIs in plain English →
BuildBuild a botPython & Rust, 32-chapter series →
DebugFix an errorPaste your error, get the fix →
Vibe-codeBuild with AIClaude Code & Cursor, safely →
Browse the reference
Reference
Build & strategy
Most popular
🟢 New in 2026 — CLOB V2 / pUSD
USDC.e → pUSD, a new order struct + EIP-712 domain v2, on-chain fees (makers pay 0), renamed SDKs. Most of the web is still v1 — these pages aren't.
Read the v1 → v2 migration →Try it now · live, no keys leave your browser
🔎 Market search⚡ API sandbox
🔑 slug → token ID🧯 Error lookup
🔌 WebSocket tester📐 Slippage / rebate calc
Last verified 2026-06-15 · CLOB V2 · py-clob-client-v2 · 25 languages ·
clob.polymarket.com · gamma-api.polymarket.com · data-api.polymarket.com