Commodity Spread Option. More...
#include <qle/instruments/commodityspreadoption.hpp>
Inheritance diagram for CommoditySpreadOption:
Collaboration diagram for CommoditySpreadOption:Classes | |
| class | arguments |
| Arguments for commodity spread option calculation More... | |
| class | engine |
| base class for commodity spread option engines More... | |
Public Member Functions | |
| CommoditySpreadOption (const QuantLib::ext::shared_ptr< CommodityCashFlow > &longAssetCashflow, const QuantLib::ext::shared_ptr< CommodityCashFlow > &shortAssetCashflow, const ext::shared_ptr< Exercise > &exercise, const Real quantity, const Real strikePrice, Option::Type type, const QuantLib::Date &paymentDate=Date(), const QuantLib::ext::shared_ptr< FxIndex > &longAssetFxIndex=nullptr, const QuantLib::ext::shared_ptr< FxIndex > &shortAssetFxIndex=nullptr, Settlement::Type delivery=Settlement::Physical, Settlement::Method settlementMethod=Settlement::PhysicalOTC) | |
Instrument interface | |
| bool | isExpired () const override |
| void | setupArguments (PricingEngine::arguments *) const override |
Inspectors | |
| QuantLib::ext::shared_ptr< CommodityCashFlow > | longAssetFlow_ |
| QuantLib::ext::shared_ptr< CommodityCashFlow > | shortAssetFlow_ |
| Real | quantity_ |
| Real | strikePrice_ |
| Option::Type | type_ |
| Date | paymentDate_ |
| QuantLib::ext::shared_ptr< FxIndex > | longAssetFxIndex_ |
| QuantLib::ext::shared_ptr< FxIndex > | shortAssetFxIndex_ |
| QuantLib::Settlement::Type | settlementType_ |
| QuantLib::Settlement::Method | settlementMethod_ |
| const QuantLib::ext::shared_ptr< CommodityCashFlow > & | underlyingLongAssetFlow () const |
| const QuantLib::ext::shared_ptr< CommodityCashFlow > & | underlyingShortAssetFlow () const |
| const QuantLib::ext::shared_ptr< FxIndex > & | longAssetFxIndex () const |
| const QuantLib::ext::shared_ptr< FxIndex > & | shortAssetFxIndex () const |
| Real | effectiveStrike () const |
| bool | isCalendarSpread () const |
Commodity Spread Option.
Definition at line 39 of file commodityspreadoption.hpp.
| CommoditySpreadOption | ( | const QuantLib::ext::shared_ptr< CommodityCashFlow > & | longAssetCashflow, |
| const QuantLib::ext::shared_ptr< CommodityCashFlow > & | shortAssetCashflow, | ||
| const ext::shared_ptr< Exercise > & | exercise, | ||
| const Real | quantity, | ||
| const Real | strikePrice, | ||
| Option::Type | type, | ||
| const QuantLib::Date & | paymentDate = Date(), |
||
| const QuantLib::ext::shared_ptr< FxIndex > & | longAssetFxIndex = nullptr, |
||
| const QuantLib::ext::shared_ptr< FxIndex > & | shortAssetFxIndex = nullptr, |
||
| Settlement::Type | delivery = Settlement::Physical, |
||
| Settlement::Method | settlementMethod = Settlement::PhysicalOTC |
||
| ) |
Definition at line 27 of file commodityspreadoption.cpp.
|
override |
Definition at line 65 of file commodityspreadoption.cpp.
|
override |
Definition at line 71 of file commodityspreadoption.cpp.
Here is the call graph for this function:| const QuantLib::ext::shared_ptr< CommodityCashFlow > & underlyingLongAssetFlow | ( | ) | const |
Definition at line 61 of file commodityspreadoption.hpp.
Here is the caller graph for this function:| const QuantLib::ext::shared_ptr< CommodityCashFlow > & underlyingShortAssetFlow | ( | ) | const |
Definition at line 62 of file commodityspreadoption.hpp.
Here is the caller graph for this function:| const QuantLib::ext::shared_ptr< FxIndex > & longAssetFxIndex | ( | ) | const |
Definition at line 64 of file commodityspreadoption.hpp.
Here is the caller graph for this function:| const QuantLib::ext::shared_ptr< FxIndex > & shortAssetFxIndex | ( | ) | const |
Definition at line 65 of file commodityspreadoption.hpp.
Here is the caller graph for this function:| Real effectiveStrike | ( | ) | const |
Definition at line 67 of file commodityspreadoption.cpp.
Here is the caller graph for this function:| bool isCalendarSpread | ( | ) | const |
|
private |
Definition at line 73 of file commodityspreadoption.hpp.
|
private |
Definition at line 74 of file commodityspreadoption.hpp.
|
private |
Definition at line 75 of file commodityspreadoption.hpp.
|
private |
Definition at line 76 of file commodityspreadoption.hpp.
|
private |
Definition at line 77 of file commodityspreadoption.hpp.
|
private |
Definition at line 78 of file commodityspreadoption.hpp.
|
private |
Definition at line 79 of file commodityspreadoption.hpp.
|
private |
Definition at line 80 of file commodityspreadoption.hpp.
|
private |
Definition at line 81 of file commodityspreadoption.hpp.
|
private |
Definition at line 82 of file commodityspreadoption.hpp.