Execution engine
Execute operations and read the operation catalog.
Credentials
sessionStorage) and are sent only to https://api.indexone.io. They are cleared when the tab closes.Direct access to the execution engine: run an operation graph, backtest or validate a workflow, and read the live operation catalog. GET /schema needs no credentials; the rest take the API key alone.
Execute an operation DAG
/executeRuns an operation graph once and returns each operation's outcome, keyed by operation id. Nothing is persisted unless an operation in the graph persists. The workflow builder previews a graph this way, and the index read operations (get_index_values, get_index_holdings, ...) make it the key-only way to read an index.
Each operation is validated on its own; the structural rules of a whole index (a trigger first, create_index_holdings last) do not apply here.
A table output comes column-wise, {column: [values]}, with numbers rounded to 2 decimal places. The index read operations take format: "dict" for full-precision rows.
Pass websocket_id to stream each operation's result over the WebSocket API as it completes; the HTTP answer then cuts every output to 20 rows. The gateway's integration timeout is 29 seconds: a graph that runs longer loses its HTTP connection while the engine carries on, which is why long runs stream.
A request that runs one operation answers a refusal of that operation with its own status (402, 403, 404); with several operations the answer is 200 and each one's state says how it went.
Request body
| Field | Type | Description |
|---|---|---|
operations | array of object | The DAG to run. |
websocket_id | string | WebSocket connection id to stream node results to. Also accepted as connection_id. |
team_id | string |
curl -X POST "https://api.indexone.io/execute" \-H "x-api-key: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"operations": [{"id": "values","operation": "get_index_values","parameters": {"id": "idx_bp1kRGFWii1j","filters": [{"field": "time","operator": "gte","value": "2026-11-27"}]}}]}'
Try it
Example response
{"values": {"state": {"warning": false,"error": false,"completed": true,"executing": false,"pending": false,"suspended": false,"skipped": false},"output": {"id": ["idx_bp1kRGFWii1j","idx_bp1kRGFWii1j"],"time": ["2026-11-27 18:00:00","2026-11-28 21:00:00"],"value": [1412.37,1415.02],"value_pr": [1339.81,1342.26],"value_tr": [1412.37,1415.02]},"message": "Operation executed successfully","metadata": {"execution_start": 1764367200.12,"execution_end": 1764367200.31,"duration_ms": 190.4}}}
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | The body is not valid JSON. |
401 | Error | The API key is missing or invalid ( invalid_api_key). |
402 | Error | One operation, refused by your plan. |
403 | Error | One operation, refused access to what it reads; or a team named on the request that you may not act on. |
404 | Error | One operation, reading something that does not exist. |
422 | Error | The graph failed validation; issues lists the problems. |
500 | Error | The graph raised. The detail stays in the logs. |
Get the operation catalog
/schemaReturns the live operation catalog: every operation the execution engine can run, with its parameter schema, input and output contracts, and documentation. The operations cover triggers, core data (EOD prices, fundamentals, FX, corporate actions, quotes), dataset loading, transformation, statistics, optimisation, index construction, storage and delivery.
This is the authoritative source when building a DAG — operation names, parameter names and enum values must come from here, not from memory, because the catalog changes as operations are added.
The response is {"operation_manifest": {<name>: {...}}}. It is a few hundred KB. This route is unauthenticated and takes no parameters.
curl -X GET "https://api.indexone.io/schema"
Try it
Example response
{"operation_manifest": {"trigger": {"description": "Fire the flow on a cron schedule, optionally aligned to an exchange calendar session.","category": "trigger","parameters": {"cron": {"type": "string","description": "5-field cron expression.","required": true},"timezone": {"type": "string","default": "UTC"},"exchange_calendar": {"type": "string","description": "xcals calendar code."},"alignment_enabled": {"type": "boolean","default": false},"align_time": {"type": "string","enum": ["session_open","session_time","session_close"]}}},"i1_core_eod": {"description": "Core end-of-day prices, market caps and volumes for the securities master.","category": "core_data","parameters": {"as_of": {"type": "string","description": "Point-in-time selection date."},"columns": {"type": "array","items": {"type": "string"}}}}}}
Errors
| Field | Type | Description |
|---|---|---|
500 | Error | The engine failed to build the catalog. |
Backtest a workflow definition
/simulateLaunches a historical simulation of an index definition and returns a pollable backtest id immediately — the same launch-now/fetch-later shape as the MCP run_backtest tool. The run replays the DAG over every scheduled date from start_time to now; its value series, holdings and statistics are persisted to a backtest blob. Nothing live is created and no schedule is registered.
The body is {"index_parameters": {...}} — the same object POST /workflows would take.
Fetch the result from GET /backtests/{backtest_id}, which waits server-side for the in-flight window so polling straight after this call is fine. Optionally pass websocket_id (or connection_id) to also stream progress frames over the WebSocket API as the run computes.
Because the id comes back at once, the 29-second API Gateway integration timeout can never sever the launch. This route runs a backtest only — stage is forced to backtest; creating a live index is POST /workflows. Requires a team API key.
Request body
| Field | Type | Description |
|---|---|---|
index_parametersrequired | object | An index definition: the index_parameters of POST /simulate and POST /workflows, and the record GET /workflows/{workflow_id} returns. The fields the platform sets (id, team_id, stage, created_at, updated_at, backtest_id, failure_reason) are ignored on input, so a fetched record can be sent back as it is. |
index_parameters.id | string | Workflow id, idx_.... Set by the platform. |
index_parameters.name | string | |
index_parameters.description | string | |
index_parameters.start_time | string | Start of the index history, YYYY-MM-DD HH:MM:SS. |
index_parameters.end_time | string | End of a backtest. Omit to run to today. |
index_parameters.start_value | number | Index level at start_time. |
index_parameters.exchange_calendar | string | Exchange calendar of the index's sessions. |
index_parameters.timezone | string | |
index_parameters.eod_time | string | Local time of the end-of-day value. |
index_parameters.operations | array of object | The operation graph. Every flow starts with a trigger and ends in create_index_holdings. |
index_parameters.default_operations | object | Settings for the operations every index runs after its own, such as its value series ( create_index_value_eod_default). |
index_parameters.visibility | "private" | "public" | "unlisted" | |
index_parameters.team_id | string | Owning team. Set by the platform. |
index_parameters.stage | string | Set by the platform: draft (saved, never deployed), pending (deploying), live, failed (see failure_reason) or stopped. |
index_parameters.failure_reason | string | null | Why a deploy or a start failed. |
index_parameters.backtest_id | string | The backtest a deploy ran, bkt_.... |
index_parameters.created_at | string | |
index_parameters.updated_at | string | |
start_time | string | Overrides index_parameters.start_time. |
end_time | string | Overrides index_parameters.end_time. |
websocket_id | string | Also stream progress frames to this WebSocket connection. Also accepted as connection_id. |
curl -X POST "https://api.indexone.io/simulate" \-H "x-api-key: YOUR_API_KEY" \-H "Content-Type: application/json" \-d '{"index_parameters": {"name": "Example Portfolio","start_time": "2019-12-31 00:00:00","start_value": 1000,"timezone": "US/Eastern","eod_time": "16:00:00","exchange_calendar": "XNYS","default_operations": {"create_index_value_eod_default": {"value_series": [{"id": "value_pr"},{"id": "value_tr","dividend_policy": "pro_rata","default": true}]}},"operations": [{"id": "rebal_trigger","operation": "trigger","parameters": {"cron": "0 0 1 1,4,7,10 *","alignment_enabled": true,"align_time": true,"trading_calendar": "XNYS","trading_day": "preceding","session_time": "close"}},{"id": "portfolio","operation": "map_identifiers","parameters": {"data": [{"symbol": "AAPL.US","weight": 0.4},{"symbol": "MSFT.US","weight": 0.3},{"symbol": "GOOGL.US","weight": 0.3}]},"input": [{"$ref": "rebal_trigger"}]},{"id": "universe","operation": "create_index_universe","parameters": {"universe": {"$ref": "portfolio.output#id"}},"input": [{"$ref": "portfolio"}]},{"id": "weights","operation": "create_index_weighting","parameters": {"data": {"$ref": "portfolio.output"},"weighting_type": "proportional","id_attribute": "id","weight_attribute": "weight"},"input": [{"$ref": "portfolio"}]},{"id": "holdings","operation": "create_index_holdings","parameters": {"weighting": {"$ref": "weights.output"}},"input": [{"$ref": "weights"}]}]}}'
Try it
Example response
{"ok": true,"backtest_id": "bkt_9Fq2LmVt41Xe","status": "running","hint": "Poll GET /backtests/bkt_9Fq2LmVt41Xe until status is 'completed' or 'failed'."}
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | No index_parameters object in the body, or the body is not valid JSON. |
401 | Error | The API key is missing or invalid ( invalid_api_key). |
402 | Error | Your plan refuses the backtest: this month's backtests are used up, the history is longer than the plan allows, or an operation needs a feature it lacks. |
403 | Error | A team named on the request ( X-Team-Id, team_id) is not one you may act on. |
422 | Error | The workflow failed validation; issues lists the problems. |
500 | Error | The launch failed. The detail stays in the logs. |
Validate a workflow or a dataset without running it
/validateTwo things can be validated, told apart by whether the body carries dataset_id.
Workflow (no dataset_id) — checks the operation graph against the operation manifest: unknown operations, missing required parameters, broken $ref wiring, structural rules.
Dataset (dataset_id present) — checks a dataset's data against its optional semantic-type schema. Pass source to check a file you have uploaded but not yet committed; omit it to report on the dataset as it stands. Reports unresolvable symbols (against the securities reference), unparseable dates, columns that differ from the stored data only by case, duplicate keys, out-of-range numbers and which dates are new — i.e. what will fire a dataset_trigger.
Advisory only. This never blocks a commit and changes nothing; ok: false is information. Both shapes answer the same issues array (severity, code, message, scope). Column meanings come from the semantic type registry — GET /schema returns it as semantic_manifest.
Request body
| Field | Type | Description |
|---|---|---|
dataset_id | string | Validate this dataset. Omit to validate a workflow instead. |
source | string | s3 uri/key of an uploaded file to check BEFORE committing it. Omit to check the dataset's current data. |
mutation | "append" | "replace" | How source would be committed. append compares against the stored rows, so new dates and duplicates are visible; replace judges the file on its own. Defaults to "append". |
schema | object | Column meanings to check against; defaults to the dataset's own. Omit on a dataset with no schema to get a suggested_schema back. |
resolve | boolean | Confirm identifiers against the securities reference. false checks shape only and is much faster. Defaults to true. |
preview_rows | number | Rows of the incoming data to return with the report. Defaults to 10. |
index_parameters | object | Workflow to validate, when no dataset_id is given. |
curl -X POST "https://api.indexone.io/validate" \-H "x-api-key: YOUR_API_KEY"
Try it
Errors
| Field | Type | Description |
|---|---|---|
400 | Error | Unknown dataset, unreadable source file, or no dataset_id and no workflow. |
401 | Error | The API key is missing or invalid ( invalid_api_key). |