Core concepts
Workflows, operations, holdings, weightings, universes and deliveries.
Everything else in these docs assumes this page. It is the vocabulary — what a workflow is, how operations wire together, the three artifacts an index produces, and how the newer engine differs from the one it replaced.
Workflows
A workflow is the definition of an index. Not a snapshot of its holdings — the rules: where the data comes from, which securities qualify, how they are weighted, and when the whole thing recalculates.
A workflow has an id beginning idx_ and lives in the {stage}-index-parameters table. Its body is {name, start_time, exchange_calendar?, operations: [...]}, where operations is a directed acyclic graph. Running that graph is an execution; the graph itself never changes between runs, only the data flowing through it.
Operations
An operation is one node in the graph. Operations fall into categories such as trigger, dataset, data_transformation, index_management, statistics, control_flow, delivery, utility, ai, optimization, machine_learning, storage and viewer. The catalog is public and authoritative — never guess an operation name or parameter, read it from GET /schema.
{"id": "filter_large_caps","operation": "filter_dataframe","parameters": { "column": "market_cap", "operator": ">", "value": 1000000000 },"input": [{ "$ref": "load_universe" }]}
Four fields, always. id is your own label and is what other operations point at. operation is the catalog name. parameters configures it. input lists the upstream operations whose output flows in.
Wiring with $ref
Edges are declared in input as {"$ref": "<op_id>"}. To read a column from an upstream result inside a parameter, use the longer form {"$ref": "<op_id>.output#<column>"}.
These two mechanisms are separate and both are required. A $ref buried in parameters does not create an edge — if the upstream operation is not also listed in input, the graph has no dependency and the value will not be there when the node runs. This is the single most common wiring mistake.
{"id": "weight_by_cap","operation": "create_index_weighting","parameters": {"weighting_type": "proportional","column": { "$ref": "select_holdings.output#market_cap" }},"input": [{ "$ref": "select_holdings" }]}
Injecting the run time
{"$ref": "context.request_context.time"} resolves to the timestamp of the current execution. Use it
instead of hard-coding a date, so the same graph works for a live run and for every step of a backtest.Structural rules
Validation enforces three things about a workflow's shape. They are not style advice — a graph that breaks them is rejected.
- Every flow starts with a trigger operation. That is what gives the run a schedule and a timestamp.
- The workflow must include
create_index_holdings. Without holdings there is nothing to value. - Every flow must persist a result. A graph that computes and discards is not a valid index.
The three artifacts
An index run produces three distinct things, and keeping them apart matters because they answer different questions and are stored in different tables.
| Artifact | What it is | Produced by | Read from |
|---|---|---|---|
| Universe | The set of securities eligible for inclusion, before any weighting decision | create_index_universe, read back with get_index_universe | index-universes |
| Weighting | Target proportions across the selected securities — the intent | create_index_weighting | index-weightings |
| Holdings | Actual share counts plus the divisor — the realisation of that intent at a point in time | create_index_holdings | index-holdings |
The distinction between weighting and holdings is the one that trips people up. A weighting says "3.2% of the index should be this security". Holdings say "the index owns 41,207 shares of it, and the divisor is 18,431.77". Between rebalances the weights drift with prices while the share counts stay fixed; corporate actions change the share counts and the divisor without changing the intended weights. A stock a merger removes leaves the holdings at once but stays in the weighting until the next rebalance, so anything that shows what the index holds now reads holdings.
Weighting types include equal and proportional — the latter takes a column to weight on, typically market capitalisation, referenced with the .output#<column> form above.
Values
From holdings the engine calculates the index value: the level series, one point per session, written to index-values-eod. Two series are maintained — PR (price return) and TR (total return, which reinvests dividends). Quoting one when a counterparty expects the other is a silent, material error, so be explicit about which you are publishing.
Corporate actions land in index-corporate-actions and feed back into holdings and the divisor, which is how the level stays continuous across a split or a special dividend.
Triggers and executions
A trigger operation defines when a flow runs. Because index work is tied to market sessions rather than wall clock time, triggers understand exchange calendars: alignment_enabled, align_time, trading_calendar, trading_day (preceding or following) and session_time (close or open). Dates & calendars covers the details, including why live EOD fires fifteen minutes after the close but stamps its value at the close.
One index commonly has more than one flow. The standard arrangement is a two-flow pattern: an annual reconstitution flow rebuilds the universe, and a quarterly rebalance flow reads that stored universe and refreshes weights and holdings from it. Splitting them means the expensive selection logic runs once a year, and the quarterly run cannot accidentally change index membership.
Deliveries
A delivery is a separate scheduled graph, with its own id prefix dlv_, that takes index artifacts and ships them outward — an email attachment, a webhook POST, an SFTP drop. It is deliberately not part of the index workflow: recalculating an index and distributing its output fail for different reasons and want different retry behaviour.
Datasets
A dataset (dst_) is data you bring yourself — an ESG score file, a proprietary signal, a custom universe list — uploaded and then referenced by dataset operations inside a workflow. Before writing a filter against one, inspect it: column names and the actual set of values in a column are things to discover, not assume.
Identifiers
Prefixes tell you what an id refers to and which plane of the API it belongs to.
| Prefix | Object | Example |
|---|---|---|
idx_ | Index workflow | idx_bh7fgXWJMaa3 |
dlv_ | Delivery | dlv_… |
dst_ | Dataset | dst_… |
bkt_ | Backtest | bkt_… |
trg_ | Trigger | trg_… |
fil_ | File | fil_… |
Where the data lives
GET /query is the read path for workflow indices. It takes a table name and a partition key, and returns {items, count, cursor}. These are the queryable tables.
| Table | Sort key | Holds |
|---|---|---|
index-parameters | — | The workflow definition itself |
index-holdings | time | Share counts and divisor per rebalance |
index-values-eod | time | The PR and TR level series |
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 |