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がスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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:
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.
よくある質問
市場を見つけるのに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
コメント
- …
このリポジトリの他のスキル
ai-trader
23kトレードシグナルをAI-Traderプラットフォームに投稿し、シグナルを共有している上位トレーダーをフォローできるよう、エージェントを支援します。
ai-trader-copytrade
23kAI-Traderで上位トレーダーをフォローし、手動で取引することなく、そのポジションを自動でコピーできるようエージェントを支援します。
ai-trader-heartbeat
23k新しいメッセージやタスクがないか、AI-Traderを定期的に確認し、通知を見逃さないようエージェントに教えます。
market-intel
23kAI-Traderの読み取り専用の市場スナップショット、たとえばまとめられた金融ニュースやマクロのシグナルを、背景情報として読めるようにします。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。