{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"bfe20076-e6ca-4a41-9e7a-6c935a8b20ac","catalogType":"api","categories":["crypto-defi"],"dataPlatform":"polymarket","dataPlatformLogoUrl":"https://docs.polymarket.com/mintlify-assets/_mintlify/favicons/polymarket-292d1b1b/A9bXCLxqYBPZ1NXc/_generated/favicon/android-chrome-192x192.png","dataPlatformTranslations":{"ar":"polymarket","ja":"polymarket","zh":"polymarket"},"dataProduct":"orderbook-and-prices","description":"Get Polymarket Batch Price History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as fidelity, interval, markets, and retrieve structured data including \u003casset id\u003e, observation timestamp, and observed price for comparison charts, and history collection, ready for production pipelines and AI agent automation.","descriptionTranslations":{"ar":"استرجع السجل السعري لما يصل إلى 20 معرف أصل في Polymarket بطلب JSON واحد، مع فترة أو نطاق زمني ودقة بالدقائق لمقارنة الرسوم. استخدم النتائج المنظمة لبناء صفحات أبحاث الأصول أو لوحات المقارنة، مع الاحتفاظ بالمعرفات والوحدات وأوقات المشاهدة عند دمج البيانات، وراجع أمثلة الطلبات والخيارات المدعومة وتسعير التنفيذ المحدد في صفحة التفاصيل.","ja":"JSON リクエストで最大20件の Polymarket 資産IDの価格履歴を取得し、期間またはタイムスタンプ範囲と分単位の精度でチャートを比較できます。 構造化された結果を資産調査ページや比較画面に利用できます。データを結合する際は識別子、単位、観測時刻を保持し、詳細ページのリクエスト例、対応オプション、選択した実装の料金を確認してください。","zh":"通过 JSON 请求一次查询最多 20 个 Polymarket 资产 ID 的价格历史，按区间或时间戳范围及分钟精度构建对比图表。 可使用结构化结果构建资产研究页面或对比看板，合并数据时保留标识符、单位及观测时间；详情页提供请求示例、支持的选项及所选实现的价格。"},"effectContentHtml":"","executionMode":"sync","id":"c9cde013-a950-4d11-9186-d1d32c5937da","includedContentHtml":"","inputs":[{"description":"Get batch prices history — complete native JSON request body.","json_schema":{"description":"Get batch prices history — complete native JSON request body.","examples":[{"fidelity":60,"interval":"1d","markets":["20006732765674855733524007935991362439352594042415161039767275461950712817548"]}],"properties":{"end_ts":{"description":"Filter by items before this unix timestamp (seconds).","format":"double","type":"number"},"fidelity":{"description":"Accuracy of the data expressed in minutes. Default is 1 minute.","type":"integer"},"interval":{"description":"Time interval for data aggregation.","enum":["max","all","1m","1w","1d","6h","1h"],"type":"string"},"markets":{"description":"List of market asset ids to query. Maximum 20.","items":{"type":"string"},"maxItems":20,"type":"array"},"start_ts":{"description":"Filter by items after this unix timestamp (seconds).","format":"double","type":"number"}},"required":["markets"],"type":"object"},"location":"body","name":"body","nullable":false,"pointer":"","required":true,"type":"object"}],"logoUrl":"https://docs.polymarket.com/mintlify-assets/_mintlify/favicons/polymarket-292d1b1b/A9bXCLxqYBPZ1NXc/_generated/favicon/android-chrome-192x192.png","method":"POST","name":"Polymarket — Get batch prices history","nameTranslations":{"ar":"Polymarket — الحصول على سجل الأسعار المجمّع","ja":"Polymarket — 一括価格履歴を取得","zh":"Polymarket — 获取批量价格历史"},"overviewHtml":"\u003ch2\u003ePolymarket Batch Price History API\u003c/h2\u003e\n\u003cp\u003eSend POST with a JSON object containing markets, an array of asset ID strings. The response history object maps each returned asset ID to timestamp and price points. Optional start_ts and end_ts use Unix seconds; fidelity uses minutes.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eJSON object: required markets array, max 20 asset ID strings; optional interval, start_ts, end_ts and fidelity.\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003epolymarket · Polymarket — Get batch prices history\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eComparison charts\u003c/strong\u003e: Plot separate outcome histories with a shared time window.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eHistory collection\u003c/strong\u003e: Store observations with their asset ID and requested resolution.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ehistory.\u0026lt;asset_id\u0026gt;[]\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003ePrice observations for the asset identified by the map key\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ehistory.\u0026lt;asset_id\u0026gt;[].t\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eObservation timestamp\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ehistory.\u0026lt;asset_id\u0026gt;[].p\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eObserved price\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the JSON body and supported fields shown in the request template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request POST \\\n  \u0026#34;https://api.openany.si/v1/agent-apis/polymarket/batch-prices-history\u0026#34; \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  -H \u0026#34;Content-Type: application/json\u0026#34; \\\n  --data-raw \u0026#39;{\u0026#34;fidelity\u0026#34;:60,\u0026#34;interval\u0026#34;:\u0026#34;1d\u0026#34;,\u0026#34;markets\u0026#34;:[\u0026#34;20006732765674855733524007935991362439352594042415161039767275461950712817548\u0026#34;]}\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe saved response is a published documentation example. Its values may be historical; the request is an independent calling template. Use current returned identifiers and optional fields for your chosen resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/c9cde013-a950-4d11-9186-d1d32c5937da\"\u003ePublished Polymarket Batch Price History API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhat belongs in markets?\u003c/h3\u003e\n\u003cp\u003eSupply asset ID strings, not event IDs or condition IDs. The request body allows at most 20 entries in markets.\u003c/p\u003e\n\u003ch3\u003eHow do I control the time window?\u003c/h3\u003e\n\u003cp\u003eUse the documented interval values max, all, 1m, 1w, 1d, 6h or 1h, or the start_ts and end_ts time bounds in Unix seconds.\u003c/p\u003e\n\u003ch3\u003eIs fidelity measured in seconds?\u003c/h3\u003e\n\u003cp\u003eNo. This implementation defines fidelity in minutes. The separate v2 token history implementation uses bucket_seconds.\u003c/p\u003e\n\u003ch3\u003eHow do I join the returned series?\u003c/h3\u003e\n\u003cp\u003eRead the keys under history as asset IDs. Each key has its own array of t and p observations; do not align different series by array position alone.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/polymarket/polymarket-get-builder-trades\"\u003ePolymarket — Get builder trades\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/polymarket/polymarket-get-clob-market-info\"\u003ePolymarket — Get CLOB market info\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/polymarket/polymarket-get-current-active-rewards-configurations\"\u003ePolymarket — Get current active rewards configurations\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/polymarket/polymarket-get-batch-prices-history?offering=c9cde013-a950-4d11-9186-d1d32c5937da","providerId":"polymarket","publicPath":"/v1/agent-apis/polymarket/batch-prices-history","requestContentType":"application/json","revision":4,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":{"fidelity":60,"interval":"1d","markets":["20006732765674855733524007935991362439352594042415161039767275461950712817548"]},"headers":{},"path":{},"query":{}},"response_body":{"history":{"20006732765674855733524007935991362439352594042415161039767275461950712817548":[{"p":0.485,"t":1793199657},{"p":0.445,"t":1793203227},{"p":0.455,"t":1793206833},{"p":0.52,"t":1793214003},{"p":0.505,"t":1793221246},{"p":0.515,"t":1793224841},{"p":0.505,"t":1793228429},{"p":0.465,"t":1793232000},{"p":0.445,"t":1793242844},{"p":0.455,"t":1793246432},{"p":0.455,"t":1793250040},{"p":0.445,"t":1793253652},{"p":0.445,"t":1793257226},{"p":0.45,"t":1793260819},{"p":0.46,"t":1793264443},{"p":0.465,"t":1793268026},{"p":0.455,"t":1793271637},{"p":0.445,"t":1793275254},{"p":0.455,"t":1793278824},{"p":0.455,"t":1793282427},{"p":0.455,"t":1793282602}]}}}],"seoDescription":"Get Polymarket Batch Price History data via REST or MCP powered by Polymarket. Pay per call, no subscription. Returns asset id and observation timestamp.","updatedAt":"2026-12-03T02:49:27.190Z","usageInstructionsHtml":""}}