Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
CommoditySpreadOption::arguments Class Reference

Arguments for commodity spread option calculation More...

#include <qle/instruments/commodityspreadoption.hpp>

+ Inheritance diagram for CommoditySpreadOption::arguments:
+ Collaboration diagram for CommoditySpreadOption::arguments:

Public Member Functions

 arguments ()
 
void validate () const override
 

Public Attributes

QuantLib::ext::shared_ptr< CommodityCashFlowlongAssetFlow
 
QuantLib::ext::shared_ptr< CommodityCashFlowshortAssetFlow
 
Real quantity
 
Real strikePrice
 
Real effectiveStrike
 
Option::Type type
 
Date paymentDate
 
QuantLib::ext::shared_ptr< FxIndexlongAssetFxIndex
 
QuantLib::ext::shared_ptr< FxIndexshortAssetFxIndex
 
bool isCalendarSpread
 
Date longAssetLastPricingDate
 
Date shortAssetLastPricingDate
 
Settlement::Type settlementType
 
Settlement::Method settlementMethod
 

Detailed Description

Arguments for commodity spread option calculation

Definition at line 86 of file commodityspreadoption.hpp.

Constructor & Destructor Documentation

◆ arguments()

arguments ( )

Member Function Documentation

◆ validate()

void validate ( ) const
override

Definition at line 100 of file commodityspreadoption.cpp.

100 {
101 QL_REQUIRE(longAssetFlow, "underlying not set");
102 QL_REQUIRE(shortAssetFlow, "underlying not set");
103 QL_REQUIRE(exercise, "exercise not set");
104 QuantLib::Settlement::checkTypeAndMethodConsistency(settlementType, settlementMethod);
105}
QuantLib::ext::shared_ptr< CommodityCashFlow > longAssetFlow
QuantLib::ext::shared_ptr< CommodityCashFlow > shortAssetFlow

Member Data Documentation

◆ longAssetFlow

QuantLib::ext::shared_ptr<CommodityCashFlow> longAssetFlow

Definition at line 89 of file commodityspreadoption.hpp.

◆ shortAssetFlow

QuantLib::ext::shared_ptr<CommodityCashFlow> shortAssetFlow

Definition at line 90 of file commodityspreadoption.hpp.

◆ quantity

Real quantity

Definition at line 91 of file commodityspreadoption.hpp.

◆ strikePrice

Real strikePrice

Definition at line 92 of file commodityspreadoption.hpp.

◆ effectiveStrike

Real effectiveStrike

Definition at line 93 of file commodityspreadoption.hpp.

◆ type

Option::Type type

Definition at line 94 of file commodityspreadoption.hpp.

◆ paymentDate

Date paymentDate

Definition at line 95 of file commodityspreadoption.hpp.

◆ longAssetFxIndex

QuantLib::ext::shared_ptr<FxIndex> longAssetFxIndex

Definition at line 96 of file commodityspreadoption.hpp.

◆ shortAssetFxIndex

QuantLib::ext::shared_ptr<FxIndex> shortAssetFxIndex

Definition at line 97 of file commodityspreadoption.hpp.

◆ isCalendarSpread

bool isCalendarSpread

Definition at line 98 of file commodityspreadoption.hpp.

◆ longAssetLastPricingDate

Date longAssetLastPricingDate

Definition at line 99 of file commodityspreadoption.hpp.

◆ shortAssetLastPricingDate

Date shortAssetLastPricingDate

Definition at line 100 of file commodityspreadoption.hpp.

◆ settlementType

Settlement::Type settlementType

Definition at line 101 of file commodityspreadoption.hpp.

◆ settlementMethod

Settlement::Method settlementMethod

Definition at line 102 of file commodityspreadoption.hpp.