42 const std::string& currency, QuantLib::Real strike, QuantLib::Real payoff,
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;
88 QuantLib::ext::shared_ptr<QuantLib::Index>
index_;
Commodity digital option trade representation as call spread.
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.
CommodityDigitalOption()
Default constructor.
CommodityDigitalOption(const Envelope &env, const OptionData &optionData, const std::string &commodityName, const std::string ¤cy, QuantLib::Real strike, QuantLib::Real payoff, const boost::optional< bool > &isFuturePrice=boost::none, const QuantLib::Date &futureExpiryDate=QuantLib::Date())
Detailed constructor.
QuantLib::Date expiryDate_
Store the option expiry date.
virtual void fromXML(XMLNode *node) override
virtual XMLNode * toXML(XMLDocument &doc) const override
void build(const QuantLib::ext::shared_ptr< EngineFactory > &engineFactory) override
Build underlying instrument and link pricing engine.
const QuantLib::Date & futureExpiryDate() const
boost::optional< bool > isFuturePrice_
std::string indexName_
Hold the external index name if needed e.g. in the case of an FX index.
QuantLib::ext::shared_ptr< QuantLib::Index > index_
An index is needed if the option is to be automatically exercised on expiry.
bool hasCashflows() const override
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
Small XML Document wrapper class.
Serializable Credit Default Swap.
trade option data model and serialization
vanilla option representation