Pull live index data
Values, holdings, weightings and universes for a live index.
A running index writes to several tables, one per artifact. This guide covers reading all of them: the value series, the holdings, the weightings, the universe and the workflow definition itself, plus how to page through a long history.
One endpoint, several tables
Workflow indices (ids beginning idx_) are read through GET /query. It is a thin, uniform wrapper over the underlying tables: you name the table, pass the index id as the partition key, and get back {items, count, cursor}.
| Parameter | Meaning |
|---|---|
table | Which table to read. See the list below. |
pk | Partition key — the index id for every index table. |
sk | Sort key value. On the time-series tables the sort key is time. |
attributes | Comma-separated projection. Ask for fewer columns and pages come back faster. |
order | ascending or descending. Descending plus a small limit is the "latest N" idiom. |
limit | Rows per page. |
cursor | Opaque base64 continuation token from the previous response. |
map_symbols | Resolve security identifiers to symbols in the response. |
| Table | Sort key | Holds |
|---|---|---|
index-parameters | — | The workflow definition |
index-values-eod | time | The level series, one row per session |
index-holdings | time | Share counts and divisor per rebalance |
index-weightings | time | Target proportions per rebalance |
index-universes | time | Eligible securities per reconstitution |
index-corporate-actions | time | Splits, dividends and other actions applied |
deliveries | — | Delivery definitions |
Both credentials
/query needs an x-api-key header and an Authorization header carrying a raw Cognito id token
with no Bearer prefix. A request with only one of them is rejected by the gateway with a 401. See
Authentication.Where each artifact comes from
Every table maps onto an operation in the workflow that wrote it. This small index — a static symbol list loaded from a dataset, equally weighted — has one of each, which makes the correspondence easy to see.
- create_index_weighting writes index-weightings — the target proportions.
- create_index_holdings writes index-holdings — share counts and the divisor.
- The default EOD value machinery writes index-values-eod once per session from those holdings.
- This index has no create_index_universe, so index-universes is empty for it — not every workflow writes every table.
The value series
The most common read. Descending order with a limit gives you the latest points; ascending with a cursor walks the history from the start.
curl -G "https://api.indexone.io/query" \--data-urlencode "table=index-values-eod" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=descending" \--data-urlencode "limit=30" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Name the series you mean
value_pr (price return) and value_tr (total
return). They diverge by the dividend yield of the index, compounded, which over a decade is not a rounding error.
Read the workflow's default_operations.create_index_value_eod_default.value_series to see which series exist
and which is marked default: true.Paging with the cursor
cursor in the response is an opaque base64 token. Pass it back as the cursor parameter to get the next page. It is null when there is nothing left — that, not an empty items array, is the termination condition.
# First pagecurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-values-eod" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=ascending" \--data-urlencode "limit=1000" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"# Next page — paste the cursor from the previous responsecurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-values-eod" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=ascending" \--data-urlencode "limit=1000" \--data-urlencode "cursor=eyJ0aW1lIjoiMjAy…" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
Holdings
Holdings are written at each rebalance and each corporate action, not per session, so the latest row is the current book — read it with order=descending&limit=1. Each row carries the constituents with their share counts and the divisor, and their weights as of the moment the row was written. map_symbols=true resolves the identifiers to tickers, which is usually what you want if a human is going to read the output.
curl -G "https://api.indexone.io/query" \--data-urlencode "table=index-holdings" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=descending" \--data-urlencode "limit=1" \--data-urlencode "map_symbols=true" \-H "x-api-key: YOUR_API_KEY" \-H "Authorization: YOUR_ID_TOKEN"
Weights move every session
index-weightings target. The MCP tool get_index_holdings, and the get_index_holdings operation with
drift: true, return the book priced now (for a past date, at that day's close). If you want the intent, read
weightings; if you want the position, read holdings.Weightings and the universe
Same shape, different tables. Weightings are the target proportions the rebalance decided on; the universe is the eligible set that the reconstitution flow produced, which is usually much larger than the holdings and changes far less often.
# Latest weighting snapshotcurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-weightings" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=descending" --data-urlencode "limit=1" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"# Latest universe (reconstitution) snapshotcurl -G "https://api.indexone.io/query" \--data-urlencode "table=index-universes" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \--data-urlencode "order=descending" --data-urlencode "limit=1" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
The workflow definition
index-parameters returns the index's own definition — name, calendar settings, value series and the full operations array. It has no time sort key; there is one row per index. Reading it is how you discover, rather than assume, which value series an index publishes and how often it rebalances.
curl -G "https://api.indexone.io/query" \--data-urlencode "table=index-parameters" \--data-urlencode "pk=idx_bh7fgXWJMaa3" \-H "x-api-key: YOUR_API_KEY" -H "Authorization: YOUR_ID_TOKEN"
Statistics
There is no REST statistics endpoint for idx_ indices. Two options: compute from the value series you already pulled, or call the MCP get_index_stats tool, which returns cumulative and annualised return, annualised volatility and max drawdown for a chosen series over an optional date range.
get_index_stats
Risk/return summary from the index's EOD value series: cumulative + annualized return, annualized volatility, max drawdown. 'series' picks a value column (default 'value').
Arguments
| Field | Type | Description |
|---|---|---|
index_idrequired | string | Index id (idx_...) or backtest id (bkt_...). |
start_time | string | Lower bound, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. |
end_time | string | Upper bound, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'. |
series | string | Value series column, e.g. 'value' or a TR series id. |
curl -X POST "https://mcp.indexone.io" \-H "content-type: application/json" \-H "accept: application/json, text/event-stream" \-H "x-api-key: YOUR_API_KEY" \-d '{"jsonrpc": "2.0","id": 1,"method": "tools/call","params": {"name": "get_index_stats","arguments": {"index_id": "idx_bh7fgXWJMaa3"}}}'
The same reads over MCP
If the caller is an agent, the MCP tools are a better fit than /query: they take an index_id and return shaped results rather than raw table rows, and they downsample long series to a point cap while always keeping the latest point.
| Table read | MCP tool |
|---|---|
index-values-eod | get_index_values |
index-holdings | get_index_holdings |
index-weightings | get_index_weightings |
index-universes | get_index_universe |
index-parameters | get_index |
| — (computed) | get_index_stats |
Dedicated REST endpoints are planned, not shipped
GET /workflows/{id}/values, /holdings, /weightings, /universe and /stats appear in the
workflows reference marked planned. Until they ship, GET /query and the MCP tools
are the supported read paths — build against /query and you will not have to change anything when the convenience
routes arrive.