Indices
Series
Open/High/Low/Close cost candles (Essential+)
OHLC candles for any index. Monthly and quarterly candles are derived from published history and available immediately; weekly/daily candles come from the rolling snapshot store and are Intelligence-only. Because indices publish weekly, daily candles may be flat until intra-period movement accumulates. Requires Essential plan or above; granularity is plan-gated. Professional+ may append ?format=csv.
get/indices/{code}/ohlc
Request
- Base URL: https://opnplatform.com/api
- URL: https://opnplatform.com/api/indices/{code}/ohlc
- Auth: HTTP bearer
Path parameters
codestring required
Query parameters
period'monthly' | 'quarterly' | 'weekly' | 'daily'
Disallowed granularities are clamped to monthly
startstring date
endstring date
format'json' | 'csv'
csv requires Professional+
Response
OHLC candles
object required
Changes
No recorded changes to this operation across all 1 revision of this API.