Get Prediction Market OHLCV
Market Data
Get Prediction Market OHLCV
Get OHLCV (candlestick) data for a specific outcome of a prediction market.
GET
Get Prediction Market OHLCV
Query Parameters
The prediction market platform (e.g.,
polymarket).The outcome token ID.
Candle period. Possible values:
1s, 5s, 10s, 1m, 5m, 15m, 1h, 4h, 1d, 1w.Start time. Accepts Unix timestamp in milliseconds (e.g.,
1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z). If omitted, returns the most recent candles.End time. Accepts Unix timestamp in milliseconds (e.g.,
1709913600000) or ISO 8601 string (e.g., 2024-03-01T00:00:00Z). Defaults to now.Maximum number of candles to return (1 to 1000).
Number of records to skip for pagination.
Response
Array of OHLCV candle objects. Uses the same abbreviated field names as the spot OHLCV endpoint (
/2/token/ohlcv-history).Pagination metadata.
Server node identifier.
Request processing time in milliseconds.
Usage Example
Example Response
Query Parameters
Prediction market platform. Today only polymarket is supported; any other value returns 400.
Available options:
polymarket Example:
"polymarket"
Polymarket outcome / token ID — uint256 decimal string (the ERC-1155 token id of the YES/NO/etc. side).
Pattern:
^[0-9]+$Example:
"59855952379545476461266875939089074481171378466995213858930892770855011813551"
Candle resolution.
Available options:
1s, 5s, 10s, 1m, 5m, 15m, 1h, 4h, 1d, 1w Start time in Unix milliseconds.
Required range:
x >= 0End time in Unix milliseconds.
Required range:
x >= 0Page size (1-5000).
Required range:
1 <= x <= 5000Pagination offset.
Required range:
x >= 0Response
200 - application/json
OHLCV candles