@@ -55,14 +55,15 @@ SimpleDynamicSimm::SimpleDynamicSimm(const std::size_t n, const std::vector<std:
5555 for (std::size_t j = 0 ; j < i; ++j) {
5656 auto p2 = ore::data::to_string (irDeltaTerms[j]);
5757 boost::algorithm::to_lower (p2);
58- irDeltaCorrelations_ (i, j) = irDeltaCorrelations_ (j, i) =
59- simmConfiguration_-> correlation ( CrifRecord::RiskType::IRCurve, " USD" , p1, std::string (),
60- CrifRecord::RiskType::IRCurve, " USD " , p2 , std::string ());
58+ irDeltaCorrelations_ (i, j) = irDeltaCorrelations_ (j, i) = simmConfiguration_-> correlation (
59+ CrifRecord::RiskType::IRCurve, " USD" , std::string (), p1, std::string (), CrifRecord::RiskType::IRCurve ,
60+ " USD " , std::string (), p2, std::string () , std::string ());
6161 }
6262 }
6363
6464 irGamma_ = simmConfiguration_->correlation (CrifRecord::RiskType::IRCurve, " USD" , std::string (), std::string (),
65- CrifRecord::RiskType::IRCurve, " GBP" , std::string (), std::string ());
65+ std::string (), CrifRecord::RiskType::IRCurve, " GBP" , std::string (),
66+ std::string (), std::string (), std::string ());
6667
6768 irVegaRw_ = simmConfiguration_->weight (CrifRecord::RiskType::IRVol, std::string (" USD" ));
6869
@@ -76,9 +77,9 @@ SimpleDynamicSimm::SimpleDynamicSimm(const std::size_t n, const std::vector<std:
7677 for (std::size_t j = 0 ; j < i; ++j) {
7778 auto p2 = ore::data::to_string (irVegaTerms[j]);
7879 boost::algorithm::to_lower (p2);
79- irVegaCorrelations_ (i, j) = irVegaCorrelations_ (j, i) =
80- simmConfiguration_-> correlation ( CrifRecord::RiskType::IRVol, " USD" , p1, std::string (),
81- CrifRecord::RiskType::IRVol, " USD " , p2 , std::string ());
80+ irVegaCorrelations_ (i, j) = irVegaCorrelations_ (j, i) = simmConfiguration_-> correlation (
81+ CrifRecord::RiskType::IRVol, " USD" , std::string (), p1, std::string (), CrifRecord::RiskType::IRVol ,
82+ " USD " , std::string (), p2, std::string () , std::string ());
8283 }
8384 }
8485
@@ -101,8 +102,8 @@ SimpleDynamicSimm::SimpleDynamicSimm(const std::size_t n, const std::vector<std:
101102 fxHvr_ = simmConfiguration_->historicalVolatilityRatio (CrifRecord::RiskType::FXVol);
102103
103104 fxCorr_ = simmConfiguration_->correlation (CrifRecord::RiskType::FX, " GBP" , std::string (), std::string (),
104- CrifRecord::RiskType::FX, " GBP" , std::string () , std::string (),
105- std::string (" USD" ));
105+ std::string (), CrifRecord::RiskType::FX, " GBP" , std::string (),
106+ std::string (), std::string (), std::string ( " USD" ));
106107
107108 fxVegaCorrelations_ = Matrix (fxVegaTerms.size (), fxVegaTerms.size (), 0.0 );
108109 for (std::size_t i = 0 ; i < fxVegaTerms.size (); ++i) {
@@ -112,9 +113,9 @@ SimpleDynamicSimm::SimpleDynamicSimm(const std::size_t n, const std::vector<std:
112113 for (std::size_t j = 0 ; j < i; ++j) {
113114 auto p2 = ore::data::to_string (fxVegaTerms[j]);
114115 boost::algorithm::to_lower (p2);
115- fxVegaCorrelations_ (i, j) = fxVegaCorrelations_ (j, i) =
116- simmConfiguration_-> correlation ( CrifRecord::RiskType::FXVol, " USD" , p1, std::string (),
117- CrifRecord::RiskType::FXVol, " USD " , p2 , std::string ());
116+ fxVegaCorrelations_ (i, j) = fxVegaCorrelations_ (j, i) = simmConfiguration_-> correlation (
117+ CrifRecord::RiskType::FXVol, " USD" , std::string (), p1, std::string (), CrifRecord::RiskType::FXVol ,
118+ " USD " , std::string (), p2, std::string () , std::string ());
118119 }
119120 }
120121
0 commit comments