47 void build(
const QuantLib::ext::shared_ptr<EngineFactory>& engineFactory)
override;
50 std::map<AssetClass, std::set<std::string>>
51 underlyingIndices(
const QuantLib::ext::shared_ptr<ReferenceDataManager>& referenceDataManager =
nullptr)
const override;
Commodity option trade representation.
const boost::optional< bool > & isFuturePrice() const
QuantLib::Date futureExpiryDate_
std::map< AssetClass, std::set< std::string > > underlyingIndices(const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceDataManager=nullptr) const override
Add underlying Commodity names.
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
CommodityOption(const Envelope &env, const OptionData &optionData, const std::string &commodityName, const std::string ¤cy, QuantLib::Real quantity, TradeStrike strike, const boost::optional< bool > &isFuturePrice=boost::none, const QuantLib::Date &futureExpiryDate=QuantLib::Date())
Detailed constructor.
void build(const QuantLib::ext::shared_ptr< EngineFactory > &engineFactory) override
Build underlying instrument and link pricing engine.
const QuantLib::Date & futureExpiryDate() const
CommodityOption()
Default constructor.
boost::optional< bool > isFuturePrice_
bool hasCashflows() const override
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
Serializable Vanilla Option.
const string & currency() const
TradeStrike strike() const
Small XML Document wrapper class.
Serializable Credit Default Swap.
trade option data model and serialization
vanilla option representation