Skip to main content
GET
cURL
Use this endpoint to chart a market’s price history, open or resolved. 5m and 1h are Polymarket’s own five-minute and hourly price buckets, read from Polymarket and cached, with the newest ones built from its 60-second prices. 1d and 1w are built from stored daily prices. For current prices and the best bid and ask, use Market snapshot.

Parameters

When you send both bounds, from must be less than or equal to to. An inverted range returns 400 with error.param set to from. Sending the two equal is fine. from and to must be in Unix seconds, not milliseconds. A value above 100000000000 (about the year 5138) returns 400 with error.param set to the offending parameter; the most common cause is passing JavaScript’s Date.now(), which returns milliseconds. The server URL-decodes the query names and the values of resolution, from, and to, so a percent-encoded value works. Sending one of those names twice uses the last value. Unknown names are ignored and reported in the X-Query-Ignored response header.

Key response fields

The stored data is daily. A 1d bucket usually holds a single point, so its o, h, l, and c all equal that day’s close. A 1w bucket aggregates real open, high, low, and close across the daily closes it covers.

Five-minute and hourly candles

Polymarket returns one price per bucket, so a provider_bucket candle has o, h, l, and c equal. Without from, 5m covers the last day and 1h the last 7 days, ending now or when the market resolved. A window can span at most 15 days, and 5m reaches back 60 days and 1h 90, the history Polymarket keeps; a wider or older window returns 400 that names the limit. Polymarket publishes these buckets in batches. On November 15, 2026 its newest 5m bucket started 16 to 31 minutes before the read, and its newest 1h bucket 1 to 2 hours before it. So in a window that ended under 3 hours ago, every bucket after Polymarket’s newest one is built from Polymarket’s 60-second prices, which trail the clock by 4 to 11 minutes, and marked basis provisional_minutes. In a provisional_minutes candle, o is the first minute’s price, h the highest, l the lowest, and c the last. The candle changes: the bucket in progress gains minutes until it closes, and a later read replaces it with Polymarket’s own bucket once that is published. Replace candles by t on each read rather than appending them. For the latest price, read Market snapshot. A 5m or 1h read that is not cached makes 0xinsider read Polymarket, and each account may start 6 of these a minute, in bursts of up to 30. A read of a window that ended under 3 hours ago counts as 2. Over that share the answer is 429 with error.reason cold_read_limited and Retry-After; a cached window still answers. If Polymarket does not answer, the route returns 503 with reason read_model_warming and Retry-After.

Example

What it does not return

  • Candles finer than five minutes, or a five-minute range older than 60 days.
  • Volume per candle. A candle carries t, o, h, l, and c, plus basis at 5m and 1h, and nothing else.
  • An error for a market whose tokens have not been fetched yet. That is a 200 with an empty outcomes array.
  • A 404 for a malformed id. An id the server cannot parse returns 400 instead. Only a well-formed id that names no stored market returns 404.

Caching

Save the response’s ETag and send it in If-None-Match on your next request. If the series has not changed, the server returns 304 Not Modified with no body.

Authorizations

Authorization
string
header
required

Legacy default or named integration API key, or OAuth 2.1 access token, in the Authorization header as Bearer oxi_sk_live_... or Bearer oxi_at_.... Default keys retain full access; integration keys are limited to their approved read, webhooks, export and usage scopes and expire within 90 days. All credentials share the owner's account limits. Data calls require an active Pro subscription and return live data. A 401 carries WWW-Authenticate: Bearer resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource" (RFC 6750 section 3, RFC 9728).

Scopes

read

Read markets, traders, large trades, positions, reports, search, the event stream and every MCP tool

Headers

X-Query-Validation
enum<string>

Opt into strict query-name validation. The default is compatible: unknown names are ignored and reported in X-Query-Ignored. With strict, an unknown name returns 400 bad_request with error.reason unknown_query_parameter before the handler runs, including when its percent escape is incomplete.

Available options:
strict
If-None-Match
string

Conditional GET validator from a previous ETag. Matching values return 304 Not Modified with an empty body.

Path Parameters

condition_id
string
required

Market condition ID. Accepts the raw provider-backed condition_id returned by /api/v1/markets/search or /api/v1/markets/explore, or the mkt_-prefixed market.id emitted by V1 responses.

Query Parameters

resolution
enum<string>
default:1d

Bucketing granularity. 5m and 1h are Polymarket's own five-minute and hourly price buckets; 1d aggregates the stored series by UTC calendar day, 1w by ISO week (Monday 00:00 UTC start). Defaults to 1d.

Available options:
5m,
1h,
1d,
1w
from
integer<int64>

Exclusive lower bound as a URL-decoded unix timestamp in seconds; points at or before this timestamp are omitted (the underlying daily snapshot read filters bucket_start > from; at 5m and 1h the window starts at the first bucket after from). If to is also present, from must be less than or equal to to. Note: for resolution=1w a surviving mid-week point can yield a weekly candle whose t (Monday 00:00 UTC) precedes from.

to
integer<int64>

Inclusive upper bound as a URL-decoded unix timestamp in seconds; points after this timestamp are omitted. If from is also present, from must be less than or equal to to.

Response

Provider-first market candles

object
string
required
Allowed value: "market_candles"
data
object
required

Provider-first bucketed OHLC price candles for a market's outcome tokens (open and resolved markets): 5m and 1h from Polymarket's /v2/prices-history buckets, 1d and 1w from our stored copy of its price history.

meta
object
required