26 const ext::shared_ptr<StrikedTypePayoff>&
payoff,
27 const ext::shared_ptr<Exercise>& exercise)
33 "exchange rate vega calculation failed");
40 "foreign interest rate rho calculation failed");
47 "quanto correlation sensitivity calculation failed");
60 QL_ENSURE(quantoResults !=
nullptr,
"no quanto results returned from pricing engine");
61 qrho_ = quantoResults->qrho;
62 qvega_ = quantoResults->qvega;
void calculate() const override
template class providing a null value for a given type.
Base class for options on a single asset.
void setupExpired() const override
void fetchResults(const PricingEngine::results *) const override
Results from quanto option calculation
QuantoVanillaOption(const ext::shared_ptr< StrikedTypePayoff > &, const ext::shared_ptr< Exercise > &)
void setupExpired() const override
void fetchResults(const PricingEngine::results *) const override
#define QL_ENSURE(condition, message)
throw an error if the given post-condition is not verified
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
ext::shared_ptr< QuantLib::Payoff > payoff
ext::shared_ptr< YieldTermStructure > r
Quanto version of a vanilla option.