42 void build(
const QuantLib::ext::shared_ptr<EngineFactory>&)
override;
61 const QuantLib::ext::shared_ptr<QuantLib::Index>& index =
nullptr,
const std::string& indexName =
"",
76 QuantLib::ext::shared_ptr<QuantLib::Index>
index_;
Serializable object holding generic trade data, reporting dimensions.
Serializable object holding option data.
Serializable Vanilla Option.
const string & currency() const
const OptionData & option() const
VanillaOptionTrade(const Envelope &env, AssetClass assetClassUnderlying, OptionData option, string assetName, string currency, double quantity, TradeStrike strike, const QuantLib::ext::shared_ptr< QuantLib::Index > &index=nullptr, const std::string &indexName="", QuantLib::Date forwardDate=QuantLib::Date())
AssetClass assetClassUnderlying_
TradeStrike strike() const
VanillaOptionTrade(AssetClass assetClassUnderlying)
void setNotionalAndCurrencies()
const QuantLib::Date forwardDate() const
QuantLib::Date expiryDate_
Store the option expiry date.
const string & asset() const
QuantLib::Date paymentDate_
Store the (optional) payment date.
const QuantLib::Date paymentDate() const
Currency underlyingCurrency_
QuantLib::Date forwardDate_
Store the (optional) forward date.
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.
void build(const QuantLib::ext::shared_ptr< EngineFactory > &) override
Build QuantLib/QuantExt instrument, link pricing engine.
Serializable Credit Default Swap.
trade option data model and serialization
Map text representations to QuantLib/QuantExt types.
base trade data model and serialization