Skip to main content
The netting-set analytics framework defines a set of database tables that hold the exposure simulation data. These tables are specific to the framework and extend the universal common tables shared across all solutions. For the other universal common tables (CounterpartyAttributes, OrganizationAttributes, and others), see the common data model. This page documents the framework-specific tables and TradeAttributes in full, with base fields and framework-added fields listed together and the framework additions marked.

What tables does the framework define?

The following tables are defined by the netting-set analytics framework.

What are the field definitions?

MarkToFuture

The facts table. Each row holds the MtF simulation vector for one trade at one future time point, and the currency of that vector. All non-blank vectors must use the same length. The vector length is set at startup and must match the consuming cube’s scenarios count configuration. A blank vector field loads a row with a null vector, which is read as a zero vector: the trade is present at that time point with a zero MtM, and the row takes no vector storage. A missing row means the trade is absent at that time point. For the gross and netted exposure, and for their incremental contributions, a blank vector and a missing row give the same values. For the collateralized exposure they can differ: the blank row still counts the trade as a contributor of its CSA at that time point, and toward the latest maturity of the CSA. When another trade of the CSA is left out, as in the incremental contributions, a CSA whose remaining trades are blank at that time point is still present with a zero MtM, and its collateral (the initial collateral, the independent amounts and the balance at t - MPOR) still produces exposure. When those rows are missing, the CSA has no exposure without that trade. To have a trade not count at a time point, such as for the time points after its maturity date, leave its row out instead of loading a blank vector. In a NON EMPTY query, cells with a zero vector appear as rows of zeros, while missing rows do not appear.
The collateral balance of a netting set is empty at every time point after the latest TradeMaturityDate of its trades, so the collateralized exposure is empty there too. When every trade has a TradeMaturityDate, the collateral results are the same whether or not the rows after maturity are loaded. For a trade without a TradeMaturityDate, the collateral results of its netting set depend on whether those rows are loaded.
The table is partitioned on AsOfDate and TradeId. To change this partitioning, see Partitioning and aggregate providers in the PFE cube or the XVA cube.

SimulationDates

Defines the set of future time points available in the simulation grid for a given as-of date. Each time point is designated as a reporting date or a collateral evaluation date by the ReportingOrCollateral field. When the look-back date falls on a time point, reporting or collateral evaluation, the collateral algorithms read that time point. Otherwise they interpolate between the neighbouring reporting time points. The first reporting time point of each as-of date must be the as-of date itself: the collateral algorithms use the initial collateral when the look-back date is before the first reporting time point. A blank ReportingOrCollateral does not default to R: the time point counts as a collateral evaluation date only.

CollateralAgreements

Holds the collateral terms of each credit support annex (CSA). One row describes one CSA. A CSA belongs to exactly one master agreement, named in the MasterAgreementId field. The collateral balance calculation reads these parameters per CSA. Additional CSA parameters declared in the additional-csa-parameters configuration property add fields to this table. See How to add custom CSA parameters.

MasterAgreements

Holds one row per master agreement. A master agreement is the netting set: close-out netting and the zero floor on the exposure apply per master agreement. A master agreement holds any number of CSAs, plus trades that have no CSA.

IndependentAmounts

Holds per-trade independent amount obligations. Trades subject to initial margin requirements have one or more rows in this table, one per CSA membership. The framework declares no topic or channel for this table: it stays empty unless the application loads it.

FxScenarios

Holds FX rate scenario vectors used to convert the MtF vectors from their MTF currency to the display currency, and the collateral between the display currency and the CSA parameter currency. The table is the FX rate table of the market data library, with a vector of rates per key and the time point as an extra key.

TradeAttributes

TradeAttributes is a universal common table that the framework extends. Rows in the Customization column marked with ✓ are added by the framework; the rest are base fields from the common layer. The framework adds the fields marked in the Customization column. For the full common reference, see TradeAttributes and the common data model.
The framework also adds a Counterparty object field to CounterpartyAttributes.

How are the tables joined?

FxScenarios is not joined to other tables via a database reference. The FX Rate measure reads it at query time to convert the MtF vectors. The collateral algorithms use the rates loaded in FxScenarios too. Both use the market data set selected in the query, or the default market data set when none is selected. A pair of identical currencies needs no row, and a missing pair is derived from its inverse or through the default currency.