Update Polymarket documentation (2026-02-19)
- Added new documentation URLs from llms.txt index - Updated TARGET.md with 244 total documentation pages - Scraped new pages for trading, concepts, and API reference sections - Updated changelog and new index pages
This commit is contained in:
@@ -2,101 +2,58 @@
|
||||
> Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
|
||||
> Use this file to discover all available pages before exploring further.
|
||||
|
||||
# Endpoints
|
||||
# Introduction
|
||||
|
||||
> All Polymarket API URLs and base endpoints
|
||||
> Overview of the Polymarket APIs
|
||||
|
||||
All base URLs for Polymarket APIs. See individual API documentation for available routes and parameters.
|
||||
The Polymarket API provides programmatic access to the world's largest prediction market. The platform is served by three separate APIs, each handling a different domain.
|
||||
|
||||
***
|
||||
|
||||
## REST APIs
|
||||
## APIs
|
||||
|
||||
| API | Base URL | Description |
|
||||
| ------------- | ---------------------------------- | ------------------------------------ |
|
||||
| **CLOB API** | `https://clob.polymarket.com` | Order management, prices, orderbooks |
|
||||
| **Gamma API** | `https://gamma-api.polymarket.com` | Market discovery, metadata, events |
|
||||
| **Data API** | `https://data-api.polymarket.com` | User positions, activity, history |
|
||||
<CardGroup cols={1}>
|
||||
<Card title="Gamma API" icon="database">
|
||||
**`https://gamma-api.polymarket.com`**
|
||||
|
||||
Markets, events, tags, series, comments, sports, search, and public profiles. This is the primary API for discovering and browsing market data.
|
||||
</Card>
|
||||
|
||||
<Card title="Data API" icon="chart-line">
|
||||
**`https://data-api.polymarket.com`**
|
||||
|
||||
User positions, trades, activity, holder data, open interest, leaderboards, and builder analytics.
|
||||
</Card>
|
||||
|
||||
<Card title="CLOB API" icon="arrows-rotate">
|
||||
**`https://clob.polymarket.com`**
|
||||
|
||||
Orderbook data, pricing, midpoints, spreads, and price history. Also handles order placement, cancellation, and other trading operations. Trading endpoints require [authentication](/api-reference/authentication).
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
<Info>
|
||||
A separate **Bridge API** (`https://bridge.polymarket.com`) handles deposits and withdrawals. Bridges are not handled by Polymarket, it is a proxy of fun.xyz service.
|
||||
</Info>
|
||||
|
||||
***
|
||||
|
||||
## WebSocket Endpoints
|
||||
## Authentication
|
||||
|
||||
| Service | URL | Description |
|
||||
| ------------------ | ------------------------------------------------ | ----------------------------------- |
|
||||
| **CLOB WebSocket** | `wss://ws-subscriptions-clob.polymarket.com/ws/` | Orderbook updates, order status |
|
||||
| **RTDS** | `wss://ws-live-data.polymarket.com` | Low-latency crypto prices, comments |
|
||||
The Gamma API and Data API are fully public — no authentication required.
|
||||
|
||||
The CLOB API has both public endpoints (orderbook, prices) and authenticated endpoints (order management). See [Authentication](/api-reference/authentication) for details.
|
||||
|
||||
***
|
||||
|
||||
## Quick Reference
|
||||
## Next Steps
|
||||
|
||||
### CLOB API
|
||||
<CardGroup cols={2}>
|
||||
<Card title="Authentication" icon="key" href="/api-reference/authentication">
|
||||
Learn how to authenticate requests for trading endpoints.
|
||||
</Card>
|
||||
|
||||
```
|
||||
https://clob.polymarket.com
|
||||
```
|
||||
|
||||
Common endpoints:
|
||||
|
||||
* `GET /price` — Get current price for a token
|
||||
* `GET /book` — Get orderbook for a token
|
||||
* `GET /midpoint` — Get midpoint price
|
||||
* `POST /order` — Place an order (auth required)
|
||||
* `DELETE /order` — Cancel an order (auth required)
|
||||
|
||||
[Full CLOB documentation →](/developers/CLOB/introduction)
|
||||
|
||||
### Gamma API
|
||||
|
||||
```
|
||||
https://gamma-api.polymarket.com
|
||||
```
|
||||
|
||||
Common endpoints:
|
||||
|
||||
* `GET /events` — List events
|
||||
* `GET /markets` — List markets
|
||||
* `GET /events/{id}` — Get event details
|
||||
|
||||
[Full Gamma documentation →](/developers/gamma-markets-api/overview)
|
||||
|
||||
### Data API
|
||||
|
||||
```
|
||||
https://data-api.polymarket.com
|
||||
```
|
||||
|
||||
Common endpoints:
|
||||
|
||||
* `GET /positions` — Get user positions
|
||||
* `GET /activity` — Get user activity
|
||||
* `GET /trades` — Get trade history
|
||||
|
||||
[Full Data API documentation →](/developers/misc-endpoints/data-api-get-positions)
|
||||
|
||||
### CLOB WebSocket
|
||||
|
||||
```
|
||||
wss://ws-subscriptions-clob.polymarket.com/ws/
|
||||
```
|
||||
|
||||
Channels:
|
||||
|
||||
* `market` — Orderbook and price updates (public)
|
||||
* `user` — Order status updates (authenticated)
|
||||
|
||||
[Full WebSocket documentation →](/developers/CLOB/websocket/wss-overview)
|
||||
|
||||
### RTDS (Real-Time Data Stream)
|
||||
|
||||
```
|
||||
wss://ws-live-data.polymarket.com
|
||||
```
|
||||
|
||||
Channels:
|
||||
|
||||
* Crypto price feeds
|
||||
* Comment streams
|
||||
|
||||
[Full RTDS documentation →](/developers/RTDS/RTDS-overview)
|
||||
<Card title="Clients & SDKs" icon="cube" href="/api-reference/clients-sdks">
|
||||
Official TypeScript, Python, and Rust libraries.
|
||||
</Card>
|
||||
</CardGroup>
|
||||
|
||||
Reference in New Issue
Block a user