Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính23k · #10138

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.md

Sao 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

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/AI-Trader/blob/main/skills/polymarket/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

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:

  • slug
  • conditionId
  • token_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:

  • question
  • slug
  • outcomes
  • clobTokenIds

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

  1. Resolve the market with Gamma using slug or conditionId
  2. Choose a concrete outcome such as Yes or No
  3. Read the corresponding token_id
  4. Query the CLOB orderbook directly from Polymarket
  5. When publishing to AI-Trader, send:
    • market: "polymarket"
    • symbol: <slug or conditionId>
    • outcome: <Yes/No/etc>
    • optional token_id if 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

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự