polymarket – skill Khác cho agent AI
Truy vấn Polymarket: thị trường, giá, sổ lệnh (orderbook), lịch sử.
Cài skill polymarket bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/polymarket-49045.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /polymarket – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/polymarket-49045.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $polymarket – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/polymarket-49045.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /polymarket – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/polymarket-49045.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /polymarket – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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
1. Gamma API at gamma-api.polymarket.com — Discovery, search, browsing
2. CLOB API at clob.polymarket.com — Real-time prices, orderbooks, history
3. Data API at data-api.polymarket.com — Trades, open interest
Typical Workflow
When a user asks about prediction market odds:
1. Search using the Gamma API public-search endpoint with their query
2. Parse the response — extract events and their nested markets
3. Present market question, current prices as percentages, and volume
4. 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 liên quan
- knowledge-ops – Dùng khi Head of Ops, Knowledge Manager hoặc TPM-Internal cần viết, kiểm tra hoặc dọn…
- comment-to-dm-cta – Lập kế hoạch CTA \"Comment KEYWORD\" cho Instagram Reel (từ khóa, lớp phủ, caption, nội…
- competency-matrix – Ma trận năng lực với mức thành thạo kỳ vọng theo chức danh và cấp bậc, kèm phương pháp…
- competitive-landscape – Khung phân tích toàn diện để phân tích đối thủ cạnh tranh, xác định cơ hội khác biệt hóa…
- competitor-alternatives – Bạn là chuyên gia tạo trang so sánh đối thủ và trang thay thế. Mục tiêu của bạn là xây…
- competitor-backlink-idea-generator – Competitor Backlink Idea Generator. Dùng khi làm việc với ngách của bạn và ví dụ hoặc…
- competitor-gap-analyzer – Competitor Gap Analyzer. Dùng khi làm việc với sản phẩm/dịch vụ của bạn và ít nhất một…
- competitor-keyword-overlap-checker – Competitor Keyword Overlap Checker. Dùng khi làm việc với hai bộ từ khóa có nhãn.