Skip to main content
GET
Get market candles

Path Parameters

string
required
The market condition id.

Query Parameters

integer
required
Inclusive start timestamp (unix seconds).
integer
required
Exclusive end timestamp (unix seconds). Must be greater than start_time. The range end_time - start_time must not exceed 30 days (2,592,000 seconds).
string
required
Candle interval. Only 5m and 30m are supported.
boolean
default:"true"
When true (default), candles use YES-outcome prices. When false, OHLC is transformed to the NO-outcome price scale (1 - price mapping with high/low swapped appropriately).

Response

array
Ordered list of OHLCV candle buckets for the market. Each item is one interval aligned to interval (bucket start is timestamp).
object
Echoes the requested outcome: is_yes (boolean) — same meaning as the is_yes query parameter (true = YES-scale prices). Present on success alongside data.
object | null
null on success. Error object on failed requests.
The API enforces a 30-day maximum window per request (end_time - start_time ≤ 2,592,000 seconds). Split larger backfills into multiple requests.