What is an exposure vector measure?
An exposure vector measure is a measure whose value at a given cell is adouble[] vector of length scenariosCount. Each element corresponds to one Monte-Carlo scenario. The exposure vector is computed at query time by aggregating the raw MtF vectors across all trades and time points in scope.
The IExposureVectorMeasures interface provides typed access to a family’s vector measures:
Side enum has two values: BANK (label "Bank") and CPTY (label "Cpty"). Convenience defaults getBankExposureVector() and getCptyExposureVector() delegate to the Side-parameterized methods. getBankRawExposureVector() and getCptyRawExposureVector() do the same for getRawExposureVectors(Side), which returns the vector before conversion to the display currency, with values at or below the MtF currency level only, or null when the vector is not converted.
What are the gross exposure measures?
Gross exposure measures operate on the raw MtF vectors without any netting or collateral adjustment. They form the foundation on which the other families are built.Base gross exposure measures (IBaseGrossExposureMeasures)
These measures are the building blocks of the gross exposure family.
mtmSum, cumulativeCashflow and every exposure vector measure of the gross, netted and collateralized families are hidden. Their (Scenario Level) expansions are visible.
Gross exposure vector family
Built from the MtF vectors of each trade, the gross exposure vectors represent the exposure of each trade or group of trades without netting. Two variants exist:- Gross (standard): aggregates all time points.
- Gross with break dates: aggregates only time points before each trade’s break date.
The full
IGrossMeasures interface extends both IExposureMeasures (for exposure vectors) and IInframarginalExposureMeasures (for inframarginal vectors). It also exposes baseGrossExposureMeasures().
What are the netted exposure measures?
Netted exposure measures aggregate MtF vectors within a netting set before taking the positive or negative part. This reduces gross exposure by the netting benefit when trades have offsetting values. The netted exposure is computed by theNettedExposure measure (plugin key NettedExposure) from the MarkToFuture values of each netting set, for the selected side, with an optional break-date restriction.
Two variants exist:
- Netted: standard aggregation.
- Netted with break dates: aggregation limited to time points before each trade’s break date.
The
INettedMeasures interface extends both IExposureMeasures and IInframarginalExposureMeasures.
What are the collateralized exposure measures?
Collateralized exposure measures subtract a CSA-based collateral balance from the netted MtF sum before taking the positive or negative part. The collateral balance is computed per netting set per time point by a collateral algorithm. The cube has one set of collateralized measures, in theCollateralized Exposures folder. They are evaluated with the algorithm selected on the Collateral Algorithm hierarchy, or with the default algorithm when the query selects none. See Collateral algorithms.
The CSA parameters, and the Netted setting of each master agreement, are provided by a separate measures bundle. See What are the CSA parameter measures?.
Independent amount measures (IIndependentAmountMeasures)
Technical collateral measures (ITechCollateralMeasures)
These measures are produced by the selected collateral algorithm.
Collateralized exposure vectors (ICollateralizedExposureMeasures)
The
ICollateralizedMeasures interface groups all collateral-related measures. Its exposureMeasures() accessor returns the single set of collateralized exposure measures:
What are the CSA parameter measures?
CSA parameter measures expose the fields of theCollateralAgreements table, one row per CSA, as cube measures. See the data model for the field definitions. The cube combines these fields into a single object measure that the collateral algorithms read.
Per-field parameter measures (ICsaParametersMeasures)
For each CSA field, the cube publishes a per-field measure in the “CSA Parameters” folder. Each measure reads its field from the CollateralAgreements row of the queried as-of date and CSA. It has a value only where both levels are expressed and the CSA has trades on that date, and is computed at query time rather than stored in an aggregate provider.
A CSA without a CollateralAgreements row on an as-of date has no agreement on that date, as N/A has none: its per-field measures are empty, the hidden Has Netting Agreement measure is false, and it holds no collateral, so it does not reduce the collateralized exposure of its master agreement.
On a standalone cube, a continuous query refreshes when a CollateralAgreements row changes.
The CSA parameters object
The"CSA Parameters" object measure (plugin key CsaParameters) holds one value per CSA. It is built from the per-field measures listed above and is not read from a table.
An override applied to one per-field measure is therefore reflected in the object and flows into the collateral balance computed from it.
How to add custom CSA parameters
The built-in parameter list can be extended through theadditional-csa-parameters cube property, a list of entries that each pair a field-name with a data type. The property sits under the cube prefix, for example atoti.solution.model.cubes.pfe. For each configured parameter, the cube:
- Adds a field to the
CollateralAgreementstable. - Publishes a per-field measure for it, alongside the built-in ones, in the “CSA Parameters” folder.
- Includes its value in the CSA parameters object, keyed by field name.
ICsaParametersMeasures.additionalParameters(name) resolves the measure for a configured parameter by its field name. It throws IllegalArgumentException for a name that is not configured. Default parameters are already reachable through their own accessors.
How does the scenario expansion work?
Scenario-level measures are produced by theScenarioExpansion measure (plugin key: ScenarioExpansion). They expose individual scenario values when the Scenarios dimension is included in the query context. Without the Scenarios dimension, these measures are not meaningful and typically return null.