Polymarket — Prediction Market Data
Query prediction market data from Polymarket using their public REST APIs.
All endpoints are read-only and require zero authentication.
See references/api-endpoints.md for the full endpoint reference with curl examples.
When to Use
- User asks about prediction markets, betting odds, or event probabilities
- User wants to know "what are the odds of X happening?"
- User asks about Polymarket specifically
- User wants market prices, orderbook data, or price history
- User asks to monitor or track prediction market movements
Key Concepts
- Events contain one or more Markets (1:many relationship)
- Markets are binary outcomes with Yes/No prices between 0.00 and 1.00
- Prices ARE probabilities: price 0.65 means the market thinks 65% likely
outcomePrices field: JSON-encoded array like ["0.80", "0.20"]
clobTokenIds field: JSON-encoded array of two token IDs [Yes, No] for price/book queries
conditionId field: hex string used for price history queries
- Volume is in USDC (US dollars)
Three Public APIs
- Gamma API at
gamma-api.polymarket.com — Discovery, search, browsing
- CLOB API at
clob.polymarket.com — Real-time prices, orderbooks, history
- Data API at
data-api.polymarket.com — Trades, open interest
Typical Workflow
When a user asks about prediction market odds:
- Search using the Gamma API public-search endpoint with their query
- Parse the response — extract events and their nested markets
- Present market question, current prices as percentages, and volume
- Deep dive if asked — use clobTokenIds for orderbook, conditionId for history
Presenting Results
Format prices as percentages for readability:
- outcomePrices
["0.652", "0.348"] becomes "Yes: 65.2%, No: 34.8%"
- Always show the market question and probability
- Include volume when available
Example: "Will X happen?" — 65.2% Yes ($1.2M volume)
Parsing Double-Encoded Fields
The Gamma API returns outcomePrices, outcomes, and clobTokenIds as JSON strings
inside JSON responses (double-encoded). When processing with Python, parse them with
json.loads(market['outcomePrices']) to get the actual array.
Rate Limits
Generous — unlikely to hit for normal usage:
- Gamma: 4,000 requests per 10 seconds (general)
- CLOB: 9,000 requests per 10 seconds (general)
- Data: 1,000 requests per 10 seconds (general)
Reference Files
references/api-endpoints.md — Polymarket Gamma/CLOB/Data API full endpoint reference
references/ai-trader-market-intel.md — AI-Trader Market Intel API (macro signals, ETF flows, stock analysis, grouped news) + agent registration for signal publishing
Limitations
- This skill is read-only — it does not support placing trades
- Trading requires wallet-based crypto authentication (EIP-712 signatures)
- Some new markets may have empty price history
- Geographic restrictions apply to trading but read-only data is globally accessible
1---2name: polymarket3description: Query Polymarket: markets, prices, orderbooks, history.4---5
6# Polymarket — Prediction Market Data
7
8Query prediction market data from Polymarket using their public REST APIs.
9All endpoints are read-only and require zero authentication.
10
11See `references/api-endpoints.md` for the full endpoint reference with curl examples.
12
13## When to Use
14
15- User asks about prediction markets, betting odds, or event probabilities
16- User wants to know "what are the odds of X happening?"
17- User asks about Polymarket specifically
18- User wants market prices, orderbook data, or price history
19- User asks to monitor or track prediction market movements
20
21## Key Concepts
22
23- **Events** contain one or more **Markets** (1:many relationship)
24- **Markets** are binary outcomes with Yes/No prices between 0.00 and 1.00
25- Prices ARE probabilities: price 0.65 means the market thinks 65% likely
26- `outcomePrices` field: JSON-encoded array like `["0.80", "0.20"]`
27- `clobTokenIds` field: JSON-encoded array of two token IDs [Yes, No] for price/book queries
28- `conditionId` field: hex string used for price history queries
29- Volume is in USDC (US dollars)
30
31## Three Public APIs
32
331. **Gamma API** at `gamma-api.polymarket.com` — Discovery, search, browsing
342. **CLOB API** at `clob.polymarket.com` — Real-time prices, orderbooks, history
353. **Data API** at `data-api.polymarket.com` — Trades, open interest
36
37## Typical Workflow
38
39When a user asks about prediction market odds:
40
411. **Search** using the Gamma API public-search endpoint with their query
422. **Parse** the response — extract events and their nested markets
433. **Present** market question, current prices as percentages, and volume
444. **Deep dive** if asked — use clobTokenIds for orderbook, conditionId for history
45
46## Presenting Results
47
48Format prices as percentages for readability:
49- outcomePrices `["0.652", "0.348"]` becomes "Yes: 65.2%, No: 34.8%"
50- Always show the market question and probability
51- Include volume when available
52
53Example: `"Will X happen?" — 65.2% Yes ($1.2M volume)`
54
55## Parsing Double-Encoded Fields
56
57The Gamma API returns `outcomePrices`, `outcomes`, and `clobTokenIds` as JSON strings
58inside JSON responses (double-encoded). When processing with Python, parse them with
59`json.loads(market['outcomePrices'])` to get the actual array.
60
61## Rate Limits
62
63Generous — unlikely to hit for normal usage:
64- Gamma: 4,000 requests per 10 seconds (general)
65- CLOB: 9,000 requests per 10 seconds (general)
66- Data: 1,000 requests per 10 seconds (general)
67
68## Reference Files
69- `references/api-endpoints.md` — Polymarket Gamma/CLOB/Data API full endpoint reference
70- `references/ai-trader-market-intel.md` — AI-Trader Market Intel API (macro signals, ETF flows, stock analysis, grouped news) + agent registration for signal publishing
71
72## Limitations
73
74- This skill is read-only — it does not support placing trades
75- Trading requires wallet-based crypto authentication (EIP-712 signatures)
76- Some new markets may have empty price history
77- Geographic restrictions apply to trading but read-only data is globally accessible