Skip to content

Commit 29fb965

Browse files
mgronckijenkins
authored andcommitted
Merge remote-tracking branch 'origin/master' into QPR-11957
1 parent c40ce2f commit 29fb965

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

OREAnalytics/orea/simm/crifrecord.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ struct BucketQualifierTag {};
161161
struct QualifierTag {};
162162
struct NoProductClassQualifierTag {};
163163

164+
struct OnlyRiskTypeTag {};
164165
/*! A structure that we can use to aggregate CrifRecords across trades in a portfolio
165166
to provide the net sensitivities that we need to perform a downstream SIMM calculation.
166167
*/
@@ -179,6 +180,10 @@ typedef boost::multi_index_container<
179180
boost::multi_index::tag<PortfolioTag>,
180181
boost::multi_index::composite_key<
181182
CrifRecord, boost::multi_index::member<CrifRecord, NettingSetDetails, &CrifRecord::nettingSetDetails>>>,
183+
boost::multi_index::ordered_non_unique<
184+
boost::multi_index::tag<OnlyRiskTypeTag>,
185+
boost::multi_index::composite_key<
186+
CrifRecord, boost::multi_index::member<CrifRecord, SimmConfiguration::RiskType, &CrifRecord::riskType>>>,
182187
boost::multi_index::ordered_non_unique<
183188
boost::multi_index::tag<ProductClassTag>,
184189
boost::multi_index::composite_key<

Tools/PythonTools/comparison_config.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,26 @@
430430
}
431431
]
432432
},
433+
"frtbcrif.csv": {
434+
"keys": [
435+
"RiskType",
436+
"Qualifier",
437+
"Bucket",
438+
"Label1",
439+
"Label2",
440+
"AmountCurrency"
441+
442+
],
443+
"column_settings": [
444+
{
445+
"names": [
446+
"AmountUSD"
447+
],
448+
"abs_tol": null,
449+
"rel_tol": 1e-12
450+
}
451+
]
452+
},
433453
"frtb.csv": {
434454
"keys": [
435455
"CorrelationScenario",

0 commit comments

Comments
 (0)