38 virtual QuantLib::Real
var(QuantLib::Real confidence,
const bool isCall =
true,
39 const std::set<std::pair<std::string, QuantLib::Size>>& tradeIds = {}) = 0;
44 VarReport(
const std::string& baseCurrency,
45 const QuantLib::ext::shared_ptr<Portfolio> & portfolio,
46 const std::string& portfolioFilter,
47 const vector<Real>&
p, boost::optional<ore::data::TimePeriod> period,
48 const QuantLib::ext::shared_ptr<HistoricalScenarioGenerator>& hisScenGen =
nullptr,
49 std::unique_ptr<SensiRunArgs> sensiArgs =
nullptr, std::unique_ptr<FullRevalArgs> fullRevalArgs =
nullptr,
50 const bool breakdown =
false);
52 void createReports(
const QuantLib::ext::shared_ptr<MarketRiskReport::Reports>& reports)
override;
54 const std::vector<Real>&
p()
const {
return p_; }
60 void writeReports(
const QuantLib::ext::shared_ptr<MarketRiskReport::Reports>& report,
61 const QuantLib::ext::shared_ptr<MarketRiskGroupBase>& riskGroup,
62 const QuantLib::ext::shared_ptr<TradeGroupBase>& tradeGroup)
override;
boost::optional< ore::data::TimePeriod > period_
virtual QuantLib::Real var(QuantLib::Real confidence, const bool isCall=true, const std::set< std::pair< std::string, QuantLib::Size > > &tradeIds={})=0
QuantLib::ext::shared_ptr< VarCalculator > varCalculator_
std::vector< ore::data::TimePeriod > timePeriods() override
void createReports(const QuantLib::ext::shared_ptr< MarketRiskReport::Reports > &reports) override
const std::vector< Real > & p() const
void writeReports(const QuantLib::ext::shared_ptr< MarketRiskReport::Reports > &report, const QuantLib::ext::shared_ptr< MarketRiskGroupBase > &riskGroup, const QuantLib::ext::shared_ptr< TradeGroupBase > &tradeGroup) override
virtual void createVarCalculator()=0
Base class for a market risk report.