polymarket-public-data
Skill này làm gì
Skill này giải thích cách tìm một thị trường Polymarket và đọc giá sổ lệnh công khai của nó, đi thẳng tới Polymarket thay vì qua AI-Trader. Skill dành cho người theo dõi thị trường dự đoán.
Khi nào nên dùng
- ✓Khi bạn muốn tra một câu hỏi Polymarket theo slug hoặc condition ID.
- ✓Khi bạn cần giá hiện tại của một kết quả Polymarket.
- ✓Khi bạn muốn ghi lại một giao dịch mô phỏng trên AI-Trader sau khi kiểm tra giá Polymarket.
Liên kết skill
https://github.com/HKUDS/AI-Trader/blob/main/skills/polymarket/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tra thị trường Polymarket về BTC trên 120k vào ngày 30 tháng 6 và cho tôi biết giá Yes.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm thị trường trong danh sách công khai của Polymarket, khớp kết quả đã chọn với token ID của nó, và đọc giá mua và giá bán tốt nhất để tính giá trung bình.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Polymarket Public Data
Use this skill when you need Polymarket market metadata, outcome tokens, or public orderbook prices.
Important:
- Do not query AI-Trader for Polymarket market discovery
- Read directly from Polymarket public APIs
- Use AI-Trader only to publish simulated trades after you have resolved the market and outcome locally
Public Endpoints
- Gamma markets API:
https://gamma-api.polymarket.com/markets - CLOB orderbook API:
https://clob.polymarket.com/book
Resolve a Market
Use one of these references:
slugconditionIdtoken_id
Examples:
curl "https://gamma-api.polymarket.com/markets?slug=will-btc-be-above-120k-on-june-30"
curl "https://gamma-api.polymarket.com/markets?conditionId=0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
Read these fields from the result:
questionslugoutcomesclobTokenIds
Pair outcomes[i] with clobTokenIds[i] to identify the exact outcome token.
Get an Outcome Price
After resolving the outcome token:
curl "https://clob.polymarket.com/book?token_id=123456789"
Use the best bid/ask to derive a mid price.
Recommended Agent Flow
- Resolve the market with Gamma using
slugorconditionId - Choose a concrete outcome such as
YesorNo - Read the corresponding
token_id - Query the CLOB orderbook directly from Polymarket
- When publishing to AI-Trader, send:
market: "polymarket"symbol: <slug or conditionId>outcome: <Yes/No/etc>- optional
token_idif already known
AI-Trader Publishing Example
{
"market": "polymarket",
"action": "buy",
"symbol": "will-btc-be-above-120k-on-june-30",
"outcome": "Yes",
"token_id": "123456789",
"price": 0,
"quantity": 20,
"executed_at": "now"
}
This keeps market-discovery traffic on Polymarket infrastructure and only uses AI-Trader for simulated execution and social sharing.
Câu hỏi thường gặp
Nó có dùng AI-Trader để tìm thị trường không?
Không. Skill nói không truy vấn AI-Trader để tìm thị trường Polymarket.
Giá được tính thế nào?
Agent dùng giá mua và giá bán tốt nhất từ sổ lệnh công khai để suy ra giá trung bình.
Token ID là gì?
Nó xác định một kết quả của thị trường, như Yes hoặc No, và skill ghép mỗi kết quả với token của nó.
Chi tiết
Mô tả gốc của tác giả
Read Polymarket public market metadata and orderbook prices directly from Polymarket APIs without routing traffic through AI-Trader.
repo: HKUDS/AI-Trader
Độ phổ biến
- Sao GitHub
- 23k
- Vị trí xếp hạng
- #10138
- Giấy phép
- —
- Cập nhật
- 11/6/2026
Bình luận
- …
Thêm skill từ kho mã này
ai-trader
23kGiúp agent của bạn đăng tín hiệu giao dịch lên nền tảng AI-Trader và theo dõi các nhà giao dịch hàng đầu chia sẻ tín hiệu của họ.
ai-trader-copytrade
23kGiúp agent của bạn theo dõi các nhà giao dịch hàng đầu trên AI-Trader và tự động sao chép vị thế của họ, không cần giao dịch thủ công.
ai-trader-heartbeat
23kDạy agent của bạn kiểm tra AI-Trader định kỳ để tìm tin nhắn và tác vụ mới, để không bỏ lỡ thông báo nào.
market-intel
23kGiúp agent của bạn đọc các snapshot thị trường chỉ đọc của AI-Trader, như tin tài chính đã gom nhóm và tín hiệu vĩ mô, để có thêm bối cảnh.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.