Get OHLC candlestick data
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 · enumRequiredPossible values:
Candle bucket interval
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
200
OK
application/json
400
Bad Request
application/json
404
Not Found
application/json
500
Internal Server Error
application/json
get
/api/v1/market-data/ohlcLast updated