23QuantLib::ext::shared_ptr<ore::data::Trade>
29 asianOption !=
nullptr,
30 "AsianOptionScriptedEngineBuilder: internal error, could not cast to ore::data::AsianOption. Contact dev.");
32 auto basketOption = QuantLib::ext::make_shared<BasketOption>(
33 asianOption->payCurrency(), std::to_string(asianOption->quantity()), asianOption->strike(),
34 std::vector<QuantLib::ext::shared_ptr<ore::data::Underlying>>(1, asianOption->underlying()), asianOption->option(),
35 asianOption->settlementDate() == QuantLib::Null<QuantLib::Date>()
38 asianOption->observationDates());
40 basketOption->build(engineFactory);
Asian option representation.
Abstract engine builders for European Asian Options.
Serializable Asian Option.
QuantLib::ext::shared_ptr< ore::data::Trade > build(const Trade *trade, const QuantLib::ext::shared_ptr< EngineFactory > &engineFactory) override
std::string to_string(const LocationInfo &l)
Serializable Credit Default Swap.