Reference
Where everything is kept
| What | Where |
|---|---|
| Settings | The group itself, field matrix (group service) |
| Schedule | A process MATRIX_<NAME> (service Matrix Generator) running the script odsl-extensions\extensions\matrix_generator\odsl.matrix_generator.runner with input group |
| Matrices | The record's data: RECORD:KEY lists the ondates, RECORD:KEY:YYYY-MM-DD is the matrix for one ondate |
| Runs | The process executions (process-exec service) |
The settings
{
"version": 1,
"target": "NGE.RISK",
"ondate": "today",
"tenor": "M01",
"labels": "name",
"process": "MATRIX_NORTHGATE_HUBS",
"items": [
{"dataid": "NGE.EUA:SETTLE", "label": "EUA"},
{"dataid": "NGE.POWER.DE:BASE", "tenor": "M01-M03, Q01", "label": "DE base"},
{"dataid": "NGE.OIL.BRENT:SETTLE", "exclude": true}
],
"matrices": [
{"key": "CORRELATION", "kind": "correlation", "name": "", "enabled": true, "transform": "logreturns",
"frequency": "daily", "window": {"type": "days", "n": 90}, "minObs": 20, "minItemObs": 20, "fill": 1},
{"key": "COVARIANCE", "kind": "covariance", "transform": "logreturns", "frequency": "daily",
"window": {"type": "days", "n": 90}, "minObs": 20, "minItemObs": 20, "fill": 1, "annualise": true, "periodsPerYear": 252},
{"key": "STATISTICS", "kind": "statistics", "transform": "logreturns", "frequency": "daily",
"window": {"type": "ytd"}, "minItemObs": 5, "periodsPerYear": 252, "stats": ["count", "last", "mean", "stdev", "vol"]}
]
}
| Field | Values | Default |
|---|---|---|
target | A private master data record id | Required |
ondate | today (the day of the run, UTC) or previous (the weekday before) | today |
tenor | The relative tenors read from curves: codes separated by commas or spaces, and ranges such as M01-M06 (same letters on both sides), at most 36. Each tenor of a curve is an item of its own | M01 |
labels | name or id | name |
process | The process that builds the group (set by the screen) | |
items[] | dataid, and any of label, tenor (the curve's own tenors, written as above), exclude | |
matrices[].key | Capital letters, digits and _, starting with a letter | Required |
matrices[].kind | correlation, covariance, statistics | correlation |
matrices[].enabled | false to skip it | true |
matrices[].transform | logreturns, returns, diff, levels | logreturns |
matrices[].frequency | daily, weekly, monthly | daily |
matrices[].window | type: days, months, obs with n; ytd; fixed with start and end (yyyy-MM-dd) | 90 days |
matrices[].minObs | Fewest observations to save the matrix (at least 3) | 20 |
matrices[].minItemObs | Fewest values for an item to be used | minObs |
matrices[].fill | Dates an item's last value is carried over | 0 |
matrices[].annualise, periodsPerYear | Covariance multiplied by periodsPerYear; for statistics, the volatility's | false; 252, 52 weekly, 12 monthly |
matrices[].stats | count, first, last, change, pctchange, min, max, mean, median, stdev, p05, p95, rmean, rstdev, vol, rmin, rmax, skew, kurt | count, last, mean, stdev, min, max, vol |
The process input
| Field | Notes |
|---|---|
group | The group's id. Always set |
ondate | yyyy-MM-dd: build for that date instead of the group's ondate rule |
historyFrom, historyTo | yyyy-MM-dd: build every weekday from one to the other, at most 130 dates |
To run a group from another process or an automation, post to process-exec/v1 with {"_id": "MATRIX_NORTHGATE_HUBS", "name": "MATRIX_NORTHGATE_HUBS", "body": {"group": "<group id>", "ondate": "2026-11-27"}}.
Extension contents
| Part | Id |
|---|---|
| Menu item | Data > Matrix Generator (feature odsl.matrix_generator.manage) |
| Group app | Groups > Apps > Matrix Generator (feature odsl.matrix_generator.group) |
| Master data tab | Matrices (feature odsl.matrix_generator.master_data), also on records in the Data Explorer |
| Feature policy | extension.odsl.matrix_generator |
| Scripts | odsl.matrix_generator.common, .workspace, .manage, .group, .master_data, .runner |
| Home tasks | odsl.matrix_generator.new, odsl.matrix_generator.check |
People need the right to update the group to save its settings and to create processes to schedule it, and the run needs the right to update the record to save the matrices.
Troubleshooting
| What you see | Why, and what to do |
|---|---|
| "only 11 log returns on the same dates, at least 20 needed" | An item with a short history, or one with many gaps. Raise Leave out items with fewer than, carry values over gaps, or lengthen the window |
| "needs at least two items with values" | All but one item were left out or could not be read: check the Items tab after a preview |
| "tenor M02 not found" | The curve has no value for that tenor; check the tenor, or use a tenor the curve has. The curve's other tenors are still used |
| "Curve tenors: the range M01-Q03 has different letters on each side" | A range fills in one kind of tenor: write M01-M03, Q01-Q03 |
| Many more rows than items | Each tenor of a curve is a row of its own: M01-M12 on three curves gives 36 |
| "not a timeseries or a curve" | The group contains another kind of data; untick it on the Items tab |
| An empty cell in a correlation matrix | That item's value did not change over the window |
| Correlations near 1 for every pair | The matrix is worked out on values: use log returns or changes |
| "Group ... is not set up for the Matrix Generator" | The process's group has no settings (they were removed): set it up again or remove the process |
| A run's dates left out where a change could not be worked out | Log returns of values at or below nought (negative power prices): use changes for those items' matrices |