Logo
Reference manual - version qle_version
List of all members
DiscountingCommodityForwardEngine Class Reference

Discounting commodity forward engine. More...

#include <qle/pricingengines/discountingcommodityforwardengine.hpp>

+ Inheritance diagram for DiscountingCommodityForwardEngine:

Public Member Functions

Constructors
 DiscountingCommodityForwardEngine (const QuantLib::Handle< QuantLib::YieldTermStructure > &discountCurve, boost::optional< bool > includeSettlementDateFlows=boost::none, const QuantLib::Date &npvDate=QuantLib::Date())
 
PricingEngine interface
void calculate () const override
 

Inspectors

const QuantLib::Handle< QuantLib::YieldTermStructure > & discountCurve () const
 

Detailed Description

Discounting commodity forward engine.

This class implements pricing of a commodity forward by discounting the future nominal cash flows using the respective yield curve.

Constructor & Destructor Documentation

◆ DiscountingCommodityForwardEngine()

DiscountingCommodityForwardEngine ( const QuantLib::Handle< QuantLib::YieldTermStructure > &  discountCurve,
boost::optional< bool >  includeSettlementDateFlows = boost::none,
const QuantLib::Date &  npvDate = QuantLib::Date() 
)
Parameters
discountCurveThe discount curve to discount the forward cashflow.
includeSettlementDateFlowsIf true (false), cashflows on the forward maturity are (are not) included in the NPV.
npvDateDiscount to this date. If not given, is set to the evaluation date