50 QuantExt::CommodityQuantityFrequency::PerCalculationPeriod,
55 void build(
const QuantLib::ext::shared_ptr<ore::data::EngineFactory>& engineFactory)
override;
58 std::map<AssetClass, std::set<std::string>>
59 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
Serializable obejct holding barrier data.
QuantLib::Real digitalCashPayoff_
CommodityDigitalAveragePriceOption()
CommodityDigitalAveragePriceOption(const ore::data::Envelope &envelope, const ore::data::OptionData &optionData, QuantLib::Real strike, QuantLib::Real digitalCashPayoff, const std::string ¤cy, const std::string &name, CommodityPriceType priceType, const std::string &startDate, const std::string &endDate, const std::string &paymentCalendar, const std::string &paymentLag, const std::string &paymentConvention, const std::string &pricingCalendar, const std::string &paymentDate="", QuantLib::Real gearing=1.0, QuantLib::Spread spread=0.0, QuantExt::CommodityQuantityFrequency commodityQuantityFrequency=QuantExt::CommodityQuantityFrequency::PerCalculationPeriod, CommodityPayRelativeTo commodityPayRelativeTo=CommodityPayRelativeTo::CalculationPeriodEndDate, QuantLib::Natural futureMonthOffset=0, QuantLib::Natural deliveryRollDays=0, bool includePeriodEnd=true, const BarrierData &barrierData={}, const std::string &fxIndex="")
QuantLib::Spread spread() const
const std::string & currency() const
const std::string & name() const
QuantExt::CommodityQuantityFrequency commodityQuantityFrequency_
const std::string & pricingCalendar() const
bool includePeriodEnd() const
virtual void fromXML(ore::data::XMLNode *node) override
std::map< AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceDataManager=nullptr) const override
Add underlying Commodity names.
const ore::data::OptionData & optionData()
CommodityPriceType priceType_
QuantLib::Natural futureMonthOffset_
void build(const QuantLib::ext::shared_ptr< ore::data::EngineFactory > &engineFactory) override
QuantExt::CommodityQuantityFrequency commodityQuantityFrequency() const
const std::string & paymentCalendar() const
ore::data::OptionData optionData_
const std::string & paymentDate() const
QuantLib::Real gearing() const
QuantLib::Real digitalCashPayoff() const
ore::data::BarrierData barrierData_
const ore::data::BarrierData & barrierData()
std::string paymentCalendar_
virtual ore::data::XMLNode * toXML(ore::data::XMLDocument &doc) const override
const std::string & paymentLag() const
CommodityPriceType priceType() const
const std::string & endDate() const
const std::string & paymentConvention() const
QuantLib::Natural deliveryRollDays() const
std::string pricingCalendar_
QuantLib::Natural futureMonthOffset() const
CommodityPayRelativeTo commodityPayRelativeTo_
QuantLib::Natural deliveryRollDays_
const std::string & startDate() const
bool hasCashflows() const override
const std::string & fxIndex() const
CommodityPayRelativeTo commodityPayRelativeTo() const
std::string paymentConvention_
QuantLib::Real strike() const
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
const Envelope & envelope() const
Small XML Document wrapper class.
leg data for commodity leg types
CommodityQuantityFrequency
@ CalculationPeriodEndDate
Serializable Credit Default Swap.
trade option data model and serialization
base trade data model and serialization