|
| ScenarioSimMarket (const bool handlePseudoCurrencies) |
| Constructor.
|
|
| ScenarioSimMarket (const QuantLib::ext::shared_ptr< Market > &initMarket, const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > ¶meters, const std::string &configuration=Market::defaultConfiguration, const ore::data::CurveConfigurations &curveConfigs=ore::data::CurveConfigurations(), const ore::data::TodaysMarketParameters &todaysMarketParams=ore::data::TodaysMarketParameters(), const bool continueOnError=false, const bool useSpreadedTermStructures=false, const bool cacheSimData=false, const bool allowPartialScenarios=false, const IborFallbackConfig &iborFallbackConfig=IborFallbackConfig::defaultConfig(), const bool handlePseudoCurrencies=true, const QuantLib::ext::shared_ptr< Scenario > &offSetScenario=nullptr) |
|
| ScenarioSimMarket (const QuantLib::ext::shared_ptr< Market > &initMarket, const QuantLib::ext::shared_ptr< ScenarioSimMarketParameters > ¶meters, const QuantLib::ext::shared_ptr< FixingManager > &fixingManager, const std::string &configuration=Market::defaultConfiguration, const ore::data::CurveConfigurations &curveConfigs=ore::data::CurveConfigurations(), const ore::data::TodaysMarketParameters &todaysMarketParams=ore::data::TodaysMarketParameters(), const bool continueOnError=false, const bool useSpreadedTermStructures=false, const bool cacheSimData=false, const bool allowPartialScenarios=false, const IborFallbackConfig &iborFallbackConfig=IborFallbackConfig::defaultConfig(), const bool handlePseudoCurrencies=true, const QuantLib::ext::shared_ptr< Scenario > &offSetScenario=nullptr) |
|
virtual QuantLib::ext::shared_ptr< ScenarioGenerator > & | scenarioGenerator () |
| Set scenario generator.
|
|
virtual const QuantLib::ext::shared_ptr< ScenarioGenerator > & | scenarioGenerator () const |
| Get scenario generator.
|
|
virtual QuantLib::ext::shared_ptr< AggregationScenarioData > & | aggregationScenarioData () |
| Set aggregation data.
|
|
virtual const QuantLib::ext::shared_ptr< AggregationScenarioData > & | aggregationScenarioData () const |
| Get aggregation data.
|
|
virtual QuantLib::ext::shared_ptr< ScenarioFilter > & | filter () |
| Set scenarioFilter.
|
|
virtual const QuantLib::ext::shared_ptr< ScenarioFilter > & | filter () const |
| Get scenarioFilter.
|
|
virtual void | preUpdate () override |
| Update.
|
|
virtual void | updateScenario (const Date &) override |
| Retrieve next market scenario and apply this, but don't update date.
|
|
virtual void | updateDate (const Date &) override |
| Update to the given date.
|
|
virtual void | postUpdate (const Date &d, bool withFixings) override |
| Observable reset depending on selected mode, instrument updates.
|
|
virtual void | updateAsd (const Date &) override |
| Update aggregation scenario data.
|
|
virtual void | reset () override |
| Reset sim market to initial state.
|
|
virtual QuantLib::ext::shared_ptr< Scenario > | baseScenario () const |
|
virtual QuantLib::ext::shared_ptr< Scenario > | baseScenarioAbsolute () const |
|
bool | useSpreadedTermStructures () const |
|
const QuantLib::ext::shared_ptr< FixingManager > & | fixingManager () const override |
| Return the fixing manager.
|
|
virtual bool | isSimulated (const RiskFactorKey::KeyType &factor) const |
| is risk factor key simulated by this sim market instance?
|
|
void | applyScenario (const QuantLib::ext::shared_ptr< Scenario > &scenario) |
|
| SimMarket (const bool handlePseudoCurrencies) |
|
virtual void | update (const Date &d) |
| Generate or retrieve market scenario, update market, notify termstructures and update fixings.
|
|
Real | numeraire () |
| Return current numeraire value.
|
|
const std::string & | label () |
| Return current scenario label, if any.
|
|
Date | asofDate () const override |
|
Handle< YieldTermStructure > | yieldCurve (const YieldCurveType &type, const string &ccy, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantLib::SwaptionVolatilityStructure > | swaptionVol (const string &key, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantLib::SwaptionVolatilityStructure > | yieldVol (const string &securityID, const string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantExt::FxIndex > | fxIndexImpl (const string &fxIndex, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CreditCurve > | defaultCurve (const string &, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CreditVolCurve > | cdsVol (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::BaseCorrelationTermStructure > | baseCorrelation (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< OptionletVolatilityStructure > | capFloorVol (const string &key, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::YoYOptionletVolatilitySurface > | yoyCapFloorVol (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
virtual Handle< ZeroInflationIndex > | zeroInflationIndex (const string &indexName, const string &configuration=Market::defaultConfiguration) const override |
|
virtual Handle< CPIVolatilitySurface > | cpiInflationCapFloorVolatilitySurface (const string &indexName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< Quote > | equitySpot (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< BlackVolTermStructure > | equityVol (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< YieldTermStructure > | equityForecastCurve (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< Quote > | securitySpread (const string &securityID, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::InflationIndexObserver > | baseCpis (const string &index, const string &configuration=Market::defaultConfiguration) const |
|
QuantLib::Handle< QuantExt::PriceTermStructure > | commodityPriceCurve (const string &commodityName, const string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantExt::CommodityIndex > | commodityIndex (const std::string &commodityName, const std::string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantLib::BlackVolTermStructure > | commodityVolatility (const string &commodityName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CorrelationTermStructure > | correlationCurve (const string &index1, const string &index2, const string &configuration=Market::defaultConfiguration) const override |
|
void | refresh (const string &configuration=Market::defaultConfiguration) override |
|
Date | asofDate () const override |
|
Handle< YieldTermStructure > | yieldCurve (const YieldCurveType &type, const string &ccy, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantLib::SwaptionVolatilityStructure > | swaptionVol (const string &key, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantLib::SwaptionVolatilityStructure > | yieldVol (const string &securityID, const string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantExt::FxIndex > | fxIndexImpl (const string &fxIndex, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CreditCurve > | defaultCurve (const string &, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CreditVolCurve > | cdsVol (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::BaseCorrelationTermStructure > | baseCorrelation (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< OptionletVolatilityStructure > | capFloorVol (const string &key, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::YoYOptionletVolatilitySurface > | yoyCapFloorVol (const string &name, const string &configuration=Market::defaultConfiguration) const override |
|
virtual Handle< ZeroInflationIndex > | zeroInflationIndex (const string &indexName, const string &configuration=Market::defaultConfiguration) const override |
|
virtual Handle< CPIVolatilitySurface > | cpiInflationCapFloorVolatilitySurface (const string &indexName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< Quote > | equitySpot (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< BlackVolTermStructure > | equityVol (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< YieldTermStructure > | equityForecastCurve (const string &eqName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< Quote > | securitySpread (const string &securityID, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::InflationIndexObserver > | baseCpis (const string &index, const string &configuration=Market::defaultConfiguration) const |
|
QuantLib::Handle< QuantExt::PriceTermStructure > | commodityPriceCurve (const string &commodityName, const string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantExt::CommodityIndex > | commodityIndex (const std::string &commodityName, const std::string &configuration=Market::defaultConfiguration) const override |
|
QuantLib::Handle< QuantLib::BlackVolTermStructure > | commodityVolatility (const string &commodityName, const string &configuration=Market::defaultConfiguration) const override |
|
Handle< QuantExt::CorrelationTermStructure > | correlationCurve (const string &index1, const string &index2, const string &configuration=Market::defaultConfiguration) const override |
|
| Market (const bool handlePseudoCurrencies) |
|
Simulation Market updated with discrete scenarios.
If useSpreadedTermStructures is true, spreaded term structures over the initMarket for supported risk factors will be generated. This is used by the SensitivityScenarioGenerator.
If cacheSimData is true, the scenario application is optimised. This requires that all scenarios are SimpleScenario instances with identical key structure in their data.
If allowPartialScenarios is true, the check that all simData_ is touched by a scenario is disabled.