Candlesticks
Get historical OHLCV candlestick data for a market
Intervals
| Interval | Value | Max Range |
|---|---|---|
| Auto | 0 (default) | Picks the best interval based on your time range |
| 1 minute | 1 | 7 days |
| 5 minutes | 5 | 14 days |
| 15 minutes | 15 | 30 days |
| 1 hour | 60 | 90 days |
| 1 day | 1440 | Unlimited (all-time) |
first_trade_ts and last_trade_ts - the Unix timestamps of the first and last trades in the market, useful for determining the full available data range. It also echoes back the resolved interval (in minutes) and interval_seconds (bucket width), so you know which bucket size was picked when requesting interval=0.Authorizations
Path Parameters
Condition ID for the market
Query Parameters
Unix timestamp (seconds) for start of time range
x >= 0Unix timestamp (seconds) for end of time range
x >= 0Interval: 0=auto, 1=1m, 5=5m, 15=15m, 60=1h, 1440=1d
Response
Successful Response
Candlesticks endpoint response.
Resolved candle interval in minutes (1, 5, 15, 60, or 1440). Reflects the auto-selected value when interval=0 is requested.
Resolved candle interval in seconds — the bucket width of each candlestick
Array of candlestick data points
Market condition ID (set for condition-level candles)
Outcome token ID (set for token-level candles)
Unix timestamp of the first trade
Unix timestamp of the last trade
