How to migrate from 1.0.0 to 1.1.0
How to convert the FX scenario files
TheFXScenarios*.csv files use new column names. A file in the 1.0.0 format no longer loads. Rename the header columns as follows:
The 1.0.0 header is the following:
MarketDataSet column assigns rows to a market data set. A row without it belongs to the default market data set, set by atoti.solution.model.cubes.pfe.market-data-set.default-market-data-set (Official EOD by default).
Which collateralized measures are renamed?
The collateralized measures no longer carry the algorithm name. MDX queries, dashboards, and code that name a measure in the first column must use the name in the second column.
The
Collateralized Exposures - Bilateral CSA folder is now Collateralized Exposures. The renamed measures use the algorithm selected on the Collateral Algorithm hierarchy. Its default member is set by atoti.solution.model.cubes.pfe.collateral.default-evaluator, Bilateral CSA by default, the algorithm of the 1.0.0 measures. A project that sets another algorithm there must select Bilateral CSA to get the 1.0.0 values.
Which measures, hierarchies, and settings follow the master agreement model?
The cube names that refer to netting sets change. MDX queries, dashboards, and configuration that use the names in the first column must use the names in the second column.
The
NettingSets aggregate provider is renamed MasterAgreements, and is partitioned by a modulo on the master agreement ID. A project that replaces or removes the partitioning of the provider by its name must use MasterAgreements, for example through IPfeCube.aggregateProviders().masterAgreements(). The property is under the cube prefix, for example atoti.solution.model.cubes.pfe.additional-csa-parameters.
Which Java types replace the per-algorithm collateralized measures?
The collateralized measure interfaces no longer group the measures by algorithm. Code that uses the types or methods in the first column must use the replacement in the second column.
The measures that
exposureMeasures() returns use the algorithm selected on the Collateral Algorithm hierarchy.
What changed in the FX scenarios table description?
IFxScenariosTableDescription renames three methods and adds one. Code that reads the table field names must use the new methods.
IMarkToFutureTableDescription has a new currency() method. A class that implements IFxScenariosTableDescription or IMarkToFutureTableDescription must implement the new methods.
How to pass the FX rate to the conversion inputs
The FX conversion inputs of the market data library,FxScalarConversionInput and FxVectorConversionInput, no longer take an FxRateInput, and they require the name of an FX rate measure. withFxRateInput(...) is removed from their builders, and the FxVectorConversionInput constructor takes two new arguments. Code that builds these inputs, for example to convert a custom measure to the display currency, must change. The steps are the same as in Market Risk: see How to pass the FX rate to the conversion inputs. In the PFE cube, fxMeasures().fxRate().getName() returns the name of the FX Rate measure.
Which Java types replace the netting set types?
The netting agreement and netting set types and methods are renamed or replaced. Code that uses the types or methods in the first column must use the replacement in the second column.ICsaParametersMeasures keeps the methods of INettingSetParametersMeasures, including bankHoldingPeriod() and cptyHoldingPeriod(), and adds netted().
Which interfaces have new methods?
The following interfaces have new abstract methods. Code that only calls them needs no change. A class that implements them must add the methods.IPfeCubeLevels extends INettingSetAnalyticsLevels, so a class that implements it must add fx() and marketDataSet().
How to convert the netting agreement files to master agreements and CSAs
A netting set is now a master agreement. It can hold several credit support annexes (CSAs), and trades with no CSA.NettingAgreements.csv is replaced by two files, and a file in the 1.0.0 format no longer loads. Convert the files as follows:
- Create
CollateralAgreements.csv, with one row per CSA, fromNettingAgreements.csv. Rename the header columns in the following table. - Create
MasterAgreements.csv, with one row per master agreement. - In
TradeAttributes, replace theNettingSetIdcolumn withCSAIdandMasterAgreementId. - In
IndependentAmounts, rename theNettingSetIdcolumn toCSAId.
The other columns keep their names. The new
MasterAgreementId column holds the master agreement of the CSA. The key of the file is AsOfDate and CSAId. The optional BankRounding and CptyRounding columns are new.
MasterAgreements.csv has the following header:
Netted set to true, and one CSA in that master agreement. Use the 1.0.0 NettingSetId as the CSAId and, for example, as the MasterAgreementId. Set the CSAId and the MasterAgreementId of each trade to these values. The Netted column defaults to false, in which case the master agreement counts its trades one by one instead of netting them. See Input file formats.
Which CSAs and master agreements need a row?
A CSA other thanN/A without a CollateralAgreements row on an as-of date has no agreement on that date, as N/A has none. Its CSA parameters are empty, the hidden Has Netting Agreement measure is false for it, and it holds no collateral, so it does not reduce the collateralized exposure of its master agreement. These values change without an error. Load the missing rows to collateralize these CSAs.
A trade whose master agreement has no MasterAgreements row on its as-of date is in the N/A master agreement. The cube counts the trades of this master agreement one by one, and does not net them. As in 1.0.0, trades without an agreement row get their gross exposure. Load a MasterAgreements row with Netted set to true to net them.
What replaces the join from TradeAttributes to NettingAgreements?
IPfeCubeDatabaseModel.tradeAttributesToNettingAgreementsJoin() is removed, and tradeAttributesToMasterAgreementsJoin() joins TradeAttributes to MasterAgreements. The database has no join from TradeAttributes to CollateralAgreements. Code that reads the terms of a CSA, for example in a dimension or a Copper measure, must read CollateralAgreements with a store lookup on AsOfDate and CSAId. Code that follows the removed join to read the netting set must use the MasterAgreementId of TradeAttributes and the new join.
Which member holds the trades without a maturity date?
A trade without a maturity date, because the value is blank or the trade has no TradeAttributes row, shows+999999999-12-31 on the trade maturity level instead of -999999999-01-01. Queries, filters, and saved views that select the -999999999-01-01 member must select +999999999-12-31 instead.