Polymarket Odds Time-Series History
Retrieve historical probability price ticks from Polymarket CLOB by clob_token_id, market slug, or "latest_active".
curl -sG "https://api.agentapigate.ai/v1/prediction/polymarket/price_history" \ --data-urlencode "market_or_token=latest_active" \ --data-urlencode "interval=1w" \ --data-urlencode "fidelity=60" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Polymarket Odds Time-Series History (`prediction.polymarket.price_history`) **token_id**: 22934791699102063598685445058269614352319797541150762608875783028655376245363 · **question**: Will Pedro Sánchez be the next Prime Minister of Spain? · **interval**: 1w · **count**: 167 ## history - [1] timestamp: 1795424416, iso_time: 2026-11-23T09:00:16.000Z, price: 0.0895 - [2] timestamp: 1795428014, iso_time: 2026-11-23T10:00:14.000Z, price: 0.0895 - [3] timestamp: 1795431610, iso_time: 2026-11-23T11:00:10.000Z, price: 0.0895 - [4] timestamp: 1795435231, iso_time: 2026-11-23T12:00:31.000Z, price: 0.0885 - [5] timestamp: 1795438813, iso_time: 2026-11-23T13:00:13.000Z, price: 0.0895 - [6] timestamp: 1795442414, iso_time: 2026-11-23T14:00:14.000Z, price: 0.0925 - [7] timestamp: 1795446032, iso_time: 2026-11-23T15:00:32.000Z, price: 0.0935 - [8] timestamp: 1795449627, iso_time: 2026-11-23T16:00:27.000Z, price: 0.094 - [9] timestamp: 1795453215, iso_time: 2026-11-23T17:00:15.000Z, price: 0.101 - [10] timestamp: 1795456838, iso_time: 2026-11-23T18:00:38.000Z, price: 0.103 - [11] timestamp: 1795460414, iso_time: 2026-11-23T19:00:14.000Z, price: 0.1055 - [12] timestamp: 1795464029, iso_time: 2026-11-23T20:00:29.000Z, price: 0.109 - [13] timestamp: 1795467617, iso_time: 2026-11-23T21:00:17.000Z, price: 0.109 - [14] timestamp: 1795471214, iso_time: 2026-11-23T22:00:14.000Z, price: 0.1125 - [15] timestamp: 1795474817, iso_time: 2026-11-23T23:00:17.000Z, price: 0.1125
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:prediction.polymarket.price_history · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| market_or_token | string | optional | latest_active | CLOB outcome token_id, Polymarket market slug, or "latest_active" |
| interval | string | optional | 1w | History window: 1d, 1w, 1m, or max |
| fidelity | number | optional | 60 | Candle resolution in minutes (e.g. 15, 60, 360) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | prediction_polymarket_price_history | OAuth 2.1 Hub & /mcp/finance |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 28 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 8150t → 400t (-95%) | Partner credit: eligible |
More prediction.polymarket Sibling Endpoints
List and search active Polymarket event contracts ranked by 24h USD volume with outcome prices, implied probabilities, liquidity, and resolution dates.
Retrieve full Polymarket contract odds, CLOB token IDs, bid/ask spread, 24h & total volume, liquidity, resolution rules, and timestamps by slug or ID.
Fetch ranked Polymarket traders by realized PnL or volume across DAY, WEEK, MONTH, or ALL windows.
Frequently Asked Questions
How do I call Polymarket Odds Time-Series History (prediction.polymarket.price_history) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/prediction/polymarket/price_history with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool prediction_polymarket_price_history on https://mcp.agentapigate.ai/mcp.
What does prediction.polymarket.price_history cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on prediction.polymarket.price_history?
Passing ?format=md transforms the response into normalized Markdown (~400 tokens vs ~8150 raw tokens, saving 95% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only finance endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["finance"], optional allowed_endpoints: ["prediction.polymarket.price_history"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.