Browse Data
Polymarket
Query Polymarket: markets, prices, orderbooks, history.
What’s inside
The method, in six moves.
- 01
When to Use
User asks about prediction markets, betting odds, or event probabilities
- 02
Key Concepts
Events contain one or more Markets (1:many relationship)
- 03
Three Public APIs
Gamma API at gamma-api.polymarket.com — Discovery, search, browsing
- 04
Typical Workflow
When a user asks about prediction market odds:
- 05
Presenting Results
Format prices as percentages for readability:
- 06
Parsing Double-Encoded Fields
The Gamma API returns outcomePrices, outcomes, and clobTokenIds as JSON strings inside JSON responses (double-encoded).
Read it before you add it
The full skill.
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
outcomePricesfield: JSON-encoded array like["0.80", "0.20"]clobTokenIdsfield: JSON-encoded array of two token IDs [Yes, No] for price/book queriesconditionIdfield: 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)
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
- SKILL.md2.9 KB
- references/api-endpoints.md4.4 KB
- scripts/polymarket.py10.0 KB
Checked by Skillplug
Reviewed and tested.
- Well-formedValid frontmatter and body
- Files all present1 reference(s), all links valid
- Reasonable size3 file(s), 18 KB
- No risky scripts1 script(s), no dangerous command found
- No leaked secretsNo secrets found
- No hidden instructionsNo suspicious instructions
- Open licenseMIT (SKILL.md license field)
- Tested by an AITest passed (7/10): The skill provides a clear research and presentation workflow for public Polymarket data, while remaining read-only.
Reviews
No reviews yet
Reviews open soon. Add Polymarket and you’ll be among the first to say how it went.
Written by
NousResearch
Shared under the MIT license, from the nousresearch/hermes-agent repository on GitHub.
Questions
Do I have to mention the skill when I ask?
No. Ask the way you normally would. Your assistant recognizes the task and opens the skill on its own.
What if NousResearch updates?
You get the new version automatically, in your next conversation. Nothing to reinstall.
Who owns this skill?
By NousResearch, licensed under MIT. Source: https://github.com/NousResearch/hermes-agent/tree/main/optional-skills/finance/polymarket