Logo
Reference manual - version qle_version
CommoditySwaptionEngine Class Reference

Commodity Swaption Analytical Engine. More...

#include <qle/pricingengines/commodityswaptionengine.hpp>

Inheritance diagram for CommoditySwaptionEngine:

Public Member Functions

 CommoditySwaptionEngine (const Handle< YieldTermStructure > &discountCurve, const Handle< QuantLib::BlackVolTermStructure > &vol, Real beta=0.0)
void calculate () const override
Public Member Functions inherited from CommoditySwaptionBaseEngine
 CommoditySwaptionBaseEngine (const Handle< YieldTermStructure > &discountCurve, const Handle< QuantLib::BlackVolTermStructure > &vol, Real beta=0.0)

Additional Inherited Members

Protected Member Functions inherited from CommoditySwaptionBaseEngine
QuantLib::Size fixedLegIndex () const
QuantLib::Real fixedLegValue (QuantLib::Size fixedLegIndex) const
 Give back the fixed leg price at the swaption expiry time.
QuantLib::Real strike (QuantLib::Size fixedLegIndex) const
QuantLib::Real rho (const QuantLib::Date &ed_1, const QuantLib::Date &ed_2) const
bool averaging (QuantLib::Size floatLegIndex) const
Protected Attributes inherited from CommoditySwaptionBaseEngine
Handle< YieldTermStructure > discountCurve_
Handle< QuantLib::BlackVolTermStructure > volStructure_
Real beta_

Detailed Description

Commodity Swaption Analytical Engine.

Analytical pricing based on the two-moment Turnbull-Wakeman approximation similar to APO pricing. Reference: Iain Clark, Commodity Option Pricing, Wiley, section 2.8 See also the documentation in the ORE+ product catalogue.