Skip to main content

Reference


Where everything is kept​

WhatWhere
SettingsThe group itself, field matrix (group service)
ScheduleA process MATRIX_<NAME> (service Matrix Generator) running the script odsl-extensions\extensions\matrix_generator\odsl.matrix_generator.runner with input group
MatricesThe record's data: RECORD:KEY lists the ondates, RECORD:KEY:YYYY-MM-DD is the matrix for one ondate
RunsThe 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"]}
]
}
FieldValuesDefault
targetA private master data record idRequired
ondatetoday (the day of the run, UTC) or previous (the weekday before)today
tenorThe 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 ownM01
labelsname or idname
processThe 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[].keyCapital letters, digits and _, starting with a letterRequired
matrices[].kindcorrelation, covariance, statisticscorrelation
matrices[].enabledfalse to skip ittrue
matrices[].transformlogreturns, returns, diff, levelslogreturns
matrices[].frequencydaily, weekly, monthlydaily
matrices[].windowtype: days, months, obs with n; ytd; fixed with start and end (yyyy-MM-dd)90 days
matrices[].minObsFewest observations to save the matrix (at least 3)20
matrices[].minItemObsFewest values for an item to be usedminObs
matrices[].fillDates an item's last value is carried over0
matrices[].annualise, periodsPerYearCovariance multiplied by periodsPerYear; for statistics, the volatility'sfalse; 252, 52 weekly, 12 monthly
matrices[].statscount, first, last, change, pctchange, min, max, mean, median, stdev, p05, p95, rmean, rstdev, vol, rmin, rmax, skew, kurtcount, last, mean, stdev, min, max, vol

The process input​

FieldNotes
groupThe group's id. Always set
ondateyyyy-MM-dd: build for that date instead of the group's ondate rule
historyFrom, historyToyyyy-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​

PartId
Menu itemData > Matrix Generator (feature odsl.matrix_generator.manage)
Group appGroups > Apps > Matrix Generator (feature odsl.matrix_generator.group)
Master data tabMatrices (feature odsl.matrix_generator.master_data), also on records in the Data Explorer
Feature policyextension.odsl.matrix_generator
Scriptsodsl.matrix_generator.common, .workspace, .manage, .group, .master_data, .runner
Home tasksodsl.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 seeWhy, 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 itemsEach 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 matrixThat item's value did not change over the window
Correlations near 1 for every pairThe 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 outLog returns of values at or below nought (negative power prices): use changes for those items' matrices