DocsDeveloper guidesPull live index data

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}.

ParameterMeaning
tableWhich table to read. See the list below.
pkPartition key — the index id for every index table.
skSort key value. On the time-series tables the sort key is time.
attributesComma-separated projection. Ask for fewer columns and pages come back faster.
orderascending or descending. Descending plus a small limit is the "latest N" idiom.
limitRows per page.
cursorOpaque base64 continuation token from the previous response.
map_symbolsResolve security identifiers to symbols in the response.
TableSort keyHolds
index-parameters—The workflow definition
index-values-eodtimeThe level series, one row per session
index-holdingstimeShare counts and divisor per rebalance
index-weightingstimeTarget proportions per rebalance
index-universestimeEligible securities per reconstitution
index-corporate-actionstimeSplits, 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.

trigger
load_ds
map_ids
weights
holdings
A minimal index: each terminal operation writes one of the tables you read back.
Drag to pan, and select a node to see its configuration.
  1. create_index_weighting writes index-weightings — the target proportions.
  2. create_index_holdings writes index-holdings — share counts and the divisor.
  3. The default EOD value machinery writes index-values-eod once per session from those holdings.
  4. 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

A row carries every configured value series — typically 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 page
curl -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 response
curl -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

A row's weights are those of the moment it was written. The weight of a position today is its shares times its current price, divided by the sum across the index, so it drifts away from that row and from the 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 snapshot
curl -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) snapshot
curl -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

no sign-in
read-only
idempotent

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

FieldTypeDescription
index_idrequiredstring
Index id (idx_...) or backtest id (bkt_...).
start_timestring
Lower bound, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'.
end_timestring
Upper bound, 'YYYY-MM-DD' or 'YYYY-MM-DD HH:MM:SS'.
seriesstring
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 readMCP tool
index-values-eodget_index_values
index-holdingsget_index_holdings
index-weightingsget_index_weightings
index-universesget_index_universe
index-parametersget_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.