3.9 KiB
3.9 KiB
Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt Use this file to discover all available pages before exploring further.
Developer Quickstart
Get started building with Polymarket APIs
Polymarket provides a suite of APIs and SDKs for building prediction market applications. This guide will help you understand what's available and where to find it.
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
**Market discovery & metadata**Fetch events, markets, categories, and resolution data. This is where you discover what's tradeable.
`https://gamma-api.polymarket.com`
**Prices, orderbooks & trading**
Get real-time prices, orderbook depth, and place orders. The core trading API.
`https://clob.polymarket.com`
**Positions, activity & history**
Query user positions, trade history, and portfolio data.
`https://data-api.polymarket.com`
**Real-time updates**
Subscribe to orderbook changes, price updates, and order status.
`wss://ws-subscriptions-clob.polymarket.com`
Additional Data Sources
**Low-latency data stream**Real-time crypto prices and comments. Optimized for market makers.
**Onchain queries**
Query blockchain state directly via GraphQL.
Trading Infrastructure
**Token split/merge/redeem**Convert between USDC and outcome tokens. Essential for inventory management.
**Gasless transactions**
Builders can offer gasfree transactions via Polymarket's relayer.
SDKs & Libraries
`npm install @polymarket/clob-client` `pip install py-clob-client` `cargo add polymarket-client-sdk`For builders routing orders for users:
Gasless wallet operations Builder authentication headers