@@ -154,13 +154,15 @@ class MarketRiskReport : public ore::data::ProgressReporter {
154154 std::vector<QuantLib::ext::shared_ptr<ore::data::Report>> reports_;
155155 };
156156
157- MarketRiskReport (const std::string& baseCurrency, boost::optional<ore::data::TimePeriod> period, const QuantLib::ext::shared_ptr<HistoricalScenarioGenerator>& hisScenGen = nullptr ,
158- std::unique_ptr<SensiRunArgs> sensiArgs = nullptr , std::unique_ptr<FullRevalArgs> fullRevalArgs = nullptr ,
159- std::unique_ptr<MultiThreadArgs> multiThreadArgs = nullptr , const bool breakdown = false ,
160- const bool requireTradePnl = false )
161- : baseCurrency_(baseCurrency), period_(period), hisScenGen_(hisScenGen), sensiArgs_(std::move(sensiArgs)),
162- fullRevalArgs_(std::move(fullRevalArgs)), multiThreadArgs_(std::move(multiThreadArgs)), breakdown_(breakdown),
163- requireTradePnl_(requireTradePnl) {}
157+ MarketRiskReport (const std::string& calculationCurrency, boost::optional<ore::data::TimePeriod> period,
158+ const QuantLib::ext::shared_ptr<HistoricalScenarioGenerator>& hisScenGen = nullptr ,
159+ std::unique_ptr<SensiRunArgs> sensiArgs = nullptr ,
160+ std::unique_ptr<FullRevalArgs> fullRevalArgs = nullptr ,
161+ std::unique_ptr<MultiThreadArgs> multiThreadArgs = nullptr , const bool breakdown = false ,
162+ const bool requireTradePnl = false )
163+ : calculationCurrency_(calculationCurrency), period_(period), hisScenGen_(hisScenGen),
164+ sensiArgs_(std::move(sensiArgs)), fullRevalArgs_(std::move(fullRevalArgs)),
165+ multiThreadArgs_(std::move(multiThreadArgs)), breakdown_(breakdown), requireTradePnl_(requireTradePnl) {}
164166 virtual ~MarketRiskReport () {}
165167
166168 virtual void init ();
@@ -183,7 +185,7 @@ class MarketRiskReport : public ore::data::ProgressReporter {
183185 bool sensiBased_ = false ;
184186 bool fullReval_ = false ;
185187
186- std::string baseCurrency_ ;
188+ std::string calculationCurrency_ ;
187189 boost::optional<ore::data::TimePeriod> period_;
188190 QuantLib::ext::shared_ptr<HistoricalScenarioGenerator> hisScenGen_;
189191 std::unique_ptr<SensiRunArgs> sensiArgs_;
0 commit comments