What Can You Build?
| If you want to… | Start here |
|---|---|
| Fetch markets & prices | Fetching Market Data |
| Place orders for yourself | Placing Your First Order |
| Build a trading app for users | Builders Program Introduction |
| Provide liquidity | Market Makers |
APIs at a Glance
Markets & Data
Gamma API
Market discovery & metadataFetch events, markets, categories, and resolution data. This is where you discover what’s tradeable.
https://gamma-api.polymarket.comCLOB API
Prices, orderbooks & tradingGet real-time prices, orderbook depth, and place orders. The core trading API.
https://clob.polymarket.comData API
Positions, activity & historyQuery user positions, trade history, and portfolio data.
https://data-api.polymarket.comWebSocket
Real-time updatesSubscribe to orderbook changes, price updates, and order status.
wss://ws-subscriptions-clob.polymarket.comAdditional Data Sources
RTDS
Low-latency data streamReal-time crypto prices and comments. Optimized for market makers.
Subgraph
Onchain queriesQuery blockchain state directly via GraphQL.
Trading Infrastructure
CTF Operations
Token split/merge/redeemConvert between USDC and outcome tokens. Essential for inventory management.
Relayer Client
Gasless transactionsBuilders can offer gasfree transactions via Polymarket’s relayer.
SDKs & Libraries
CLOB Client (TypeScript)
npm install @polymarket/clob-clientCLOB Client (Python)
pip install py-clob-client