Get OHLC candlestick data

GET /api/v1/market-data/ohlc

Get OHLC candlestick data

get

Returns OHLC (open/high/low/close) candlestick data for a specific outcome token over a given time range and bucket interval. Provide token ID or outcome index (not both). Payout fields are included for resolved markets.

Query parameters
marketstringRequired

Market contract address

token_idstringOptional

Outcome token ID (provide token_id or outcome_index, not both)

outcome_indexintegerOptional

Outcome index, 0-based (provide token_id or outcome_index, not both)

intervalstring · enumRequired

Candle bucket interval

Possible values:
start_tsintegerOptional

Start unix timestamp (default: 24h before end_ts)

end_tsintegerOptional

End unix timestamp (default: now)

limitintegerOptional

Max data points returned (default 500, max 5000)

Responses
chevron-right
200

OK

application/json
get
/api/v1/market-data/ohlc

Last updated