본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트23k · #10138

polymarket-public-data

하는 일

Polymarket 시장을 찾고 공개 오더북 가격을 읽는 방법을 설명합니다. AI-Trader를 거치지 않고 Polymarket에 직접 접속합니다. 예측 시장을 따라가는 분들을 위한 스킬입니다.

사용하는 경우

  • ✓슬러그나 조건 ID로 Polymarket 질문을 찾아보고 싶을 때.
  • ✓Polymarket 결과 하나의 현재 가격이 필요할 때.
  • ✓Polymarket 가격을 확인한 뒤 AI-Trader에 모의 거래를 기록하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/HKUDS/AI-Trader/blob/main/skills/polymarket/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“6월 30일 BTC가 120k 이상인지 묻는 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란 무엇인가요?

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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬