45 virtual string keyImpl(
const Currency&,
const string& creditCurveId,
46 const string& term)
override {
47 return term.empty() ? creditCurveId : creditCurveId +
"-" + term;
62 virtual QuantLib::ext::shared_ptr<PricingEngine>
engineImpl(
const Currency& ccy,
const string& creditCurveId,
63 const string& term)
override {
65 string curveId = term.empty() ? creditCurveId : creditCurveId +
"-" + term;
68 Handle<DefaultProbabilityTermStructure> dpts =
71 return QuantLib::ext::make_shared<QuantExt::BlackCdsOptionEngine>(dpts, recovery->value(), yts, vol);
Builder that returns an engine to price a credit default swap.
Black CDS option engine builder for CDS options.
virtual QuantLib::ext::shared_ptr< PricingEngine > engineImpl(const Currency &ccy, const string &creditCurveId, const string &term) override
BlackCdsOptionEngineBuilder()
Abstract template EngineBuilder class that can cache engines and coupon pricers.
Engine Builder base class for Credit Default Swap Options.
CreditDefaultSwapOptionEngineBuilder(const std::string &model, const std::string &engine)
virtual string keyImpl(const Currency &, const string &creditCurveId, const string &term) override
QuantLib::ext::shared_ptr< Market > market_
const string & engine() const
Return the engine name.
const string & model() const
Return the model name.
const string & configuration(const MarketContext &key)
Return a configuration (or the default one if key not found)
Serializable Credit Default Swap.