{"uid":"cap_xLlMCGJcsUhyl7JQWPt56","slug":"hostdefi-polymarket-prediction-market-price-history-383371cc","name":"HostDeFi Polymarket Prediction Market Price History","description":"HostDeFi is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.","url":"https://hostdefi.com/api/v1/x402/predict/history","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"marketId":{"type":"string","description":"Polymarket market id (conditionId, as listed by /v1/x402/predict/markets)"}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"count":120,"title":"Will it settle?","points":[[0,0.62,0.39]],"source":"polymarket","marketId":"…"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EoBOpA742ege6EepWQcMM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns historical price/probability time-series data for a specific Polymarket prediction market identified by its conditionId.","exampleAgentPrompt":"Can you pull up the full probability history for Polymarket market 0xabc123... so I can see how the odds have shifted over time?","exampleUseCases":[{"title":"Track odds movement on political event","prompt":"Show me the historical probability curve for this Polymarket market — conditionId 0xdef456... — I want to see how the odds moved over the last few weeks."},{"title":"Backtest prediction market signals","prompt":"Fetch all the historical price points for Polymarket market 0x789abc... so I can analyze whether early probability shifts were predictive of the final outcome."},{"title":"Visualize market sentiment over time","prompt":"Get me the time-series probability data for Polymarket condition 0x111222... so I can chart how market sentiment evolved leading up to settlement."}],"resultDescription":"Returns a JSON object with ok status, a count of data points, the market title, an array of [timestamp, yes-probability, no-probability] tuples, the data source (Polymarket), and the market conditionId.","failureModes":["Invalid or unknown marketId returns an error or empty result","Missing required marketId query parameter may return a 400 or empty response","Market not yet resolved or very new may return limited historical points","Payment failure (x402) blocks access if USDC payment is not processed","Rate limiting or network issues may cause timeouts"],"whenToPreferThis":"Use this endpoint when you need historical probability time-series data for a specific Polymarket prediction market by conditionId, especially within a DeFi/crypto context where you are already using HostDeFi for swap or trading functionality. Prefer this over direct Polymarket API access when operating in an x402 micropayment environment or when you need aggregated DeFi + prediction market data in one ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:39:58.348Z","isFirstParty":false}