本文へスキップ
Skillpedia
分析とスプレッドシート23k · #10138

polymarket-public-data

できること

Polymarketの市場を見つけ、公開のオーダーブックの価格を読む方法を説明します。AI-Traderを経由せず、Polymarketに直接アクセスします。予測市場を追っている人向けです。

使う場面

  • ✓スラッグまたは条件IDで、Polymarketの質問を調べたいとき。
  • ✓Polymarketの1つの結果の現在の価格が必要なとき。
  • ✓Polymarketの価格を確認した後、AI-Traderにシミュレーションの取引を記録したいとき。

スキルのリンク

https://github.com/HKUDS/AI-Trader/blob/main/skills/polymarket/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/HKUDS/AI-Trader/blob/main/skills/polymarket/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“6月30日までにBTCが12万ドルを超えるかというPolymarketの市場を調べ、Yesの価格を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、Polymarketの公開の一覧で市場を見つけ、選んだ結果をトークンIDに対応付け、最良の買い注文と売り注文を読んで、中間の価格を計算します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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.

よくある質問

市場を見つけるのにAI-Traderを使いますか?

いいえ。Polymarketの市場を探すためにAI-Traderに問い合わせないよう、このスキルは説明しています。

中間の価格はどう計算されますか?

エージェントは、公開のオーダーブックにある最良の買い注文と売り注文から中間の価格を導きます。

トークンIDとは何ですか?

市場の1つの結果、たとえばYesやNoを識別するもので、このスキルは各結果をトークンに対応付けます。

詳細

作者による元の説明

Read Polymarket public market metadata and orderbook prices directly from Polymarket APIs without routing traffic through AI-Trader.

repo: HKUDS/AI-Trader

人気

GitHubのスター
23k
ランキング
#10138
ライセンス
—
更新日
2026/6/11

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル