26#include <boost/make_shared.hpp>
29#include <ql/pricingengines/vanilla/analyticeuropeanengine.hpp>
30#include <ql/processes/blackscholesprocess.hpp>
46 :
CachingEngineBuilder(
"BlackScholesMerton",
"AnalyticEuropeanEngine", {
"EquityDigitalOption"}) {}
49 virtual string keyImpl(
const string& assetName,
const Currency& ccy)
override {
50 return assetName +
"/" + ccy.code();
53 virtual QuantLib::ext::shared_ptr<PricingEngine>
engineImpl(
const string& assetName,
const Currency& ccy)
override {
55 QuantLib::ext::shared_ptr<GeneralizedBlackScholesProcess> gbsp = QuantLib::ext::make_shared<GeneralizedBlackScholesProcess>(
61 return QuantLib::ext::make_shared<QuantExt::AnalyticEuropeanEngine>(gbsp);
Abstract template engine builder class.
Abstract template EngineBuilder class that can cache engines and coupon pricers.
QuantLib::ext::shared_ptr< Market > market_
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
Engine Builder for European EQ Digital Options.
EquityDigitalOptionEngineBuilder()
virtual QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const string &assetName, const Currency &ccy) override
virtual string keyImpl(const string &assetName, const Currency &ccy) override
Serializable Credit Default Swap.