Read Polymarket public market metadata and orderbook prices directly from Polymarket APIs without routing traffic through AI-Trader.
Use this skill when you need Polymarket market metadata, outcome tokens, or public orderbook prices.
Important:
https://gamma-api.polymarket.com/marketshttps://clob.polymarket.com/bookUse one of these references:
slugconditionIdtoken_idExamples:
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:
questionslugoutcomesclobTokenIdsPair outcomes[i] with clobTokenIds[i] to identify the exact outcome token.
After resolving the outcome token:
curl "https://clob.polymarket.com/book?token_id=123456789"
Use the best bid/ask to derive a mid price.
slug or conditionIdYes or Notoken_idmarket: "polymarket"symbol: <slug or conditionId>outcome: <Yes/No/etc>token_id if already known{
"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.