Commodity Average Price Option. More...
#include <qle/instruments/commodityapo.hpp>
Classes | |
class | arguments |
Arguments for commodity APO calculation More... | |
class | engine |
base class for APO engines More... | |
Public Member Functions | |
CommodityAveragePriceOption (const QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > &flow, const ext::shared_ptr< Exercise > &exercise, const Real quantity, const Real strikePrice, Option::Type type, Settlement::Type delivery=Settlement::Physical, Settlement::Method settlementMethod=Settlement::PhysicalOTC, const Real barrierLevel=Null< Real >(), Barrier::Type barrierType=Barrier::Type::DownIn, Exercise::Type barrierStyle=Exercise::American, const QuantLib::ext::shared_ptr< FxIndex > &fxIndex=nullptr) | |
Instrument interface | |
bool | isExpired () const override |
void | setupArguments (PricingEngine::arguments *) const override |
Inspectors | |
QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > | flow_ |
Real | quantity_ |
Real | strikePrice_ |
Option::Type | type_ |
QuantLib::Settlement::Type | settlementType_ |
QuantLib::Settlement::Method | settlementMethod_ |
QuantLib::ext::shared_ptr< FxIndex > | fxIndex_ |
Real | barrierLevel_ |
Barrier::Type | barrierType_ |
Exercise::Type | barrierStyle_ |
Settlement::Type | settlementType () const |
Settlement::Method | settlementMethod () const |
const QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > & | underlyingFlow () const |
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex () const |
Real | barrierLevel () const |
Barrier::Type | barrierType () const |
Exercise::Type | barrierStyle () const |
Real | effectiveStrike () const |
Real | accrued (const Date &refDate) const |
Commodity Average Price Option.
Definition at line 41 of file commodityapo.hpp.
CommodityAveragePriceOption | ( | const QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > & | flow, |
const ext::shared_ptr< Exercise > & | exercise, | ||
const Real | quantity, | ||
const Real | strikePrice, | ||
Option::Type | type, | ||
Settlement::Type | delivery = Settlement::Physical , |
||
Settlement::Method | settlementMethod = Settlement::PhysicalOTC , |
||
const Real | barrierLevel = Null<Real>() , |
||
Barrier::Type | barrierType = Barrier::Type::DownIn , |
||
Exercise::Type | barrierStyle = Exercise::American , |
||
const QuantLib::ext::shared_ptr< FxIndex > & | fxIndex = nullptr |
||
) |
Definition at line 25 of file commodityapo.cpp.
|
override |
Definition at line 42 of file commodityapo.cpp.
|
override |
Definition at line 71 of file commodityapo.cpp.
Settlement::Type settlementType | ( | ) | const |
Settlement::Method settlementMethod | ( | ) | const |
const QuantLib::ext::shared_ptr< CommodityIndexedAverageCashFlow > & underlyingFlow | ( | ) | const |
Definition at line 64 of file commodityapo.hpp.
const QuantLib::ext::shared_ptr< FxIndex > & fxIndex | ( | ) | const |
Definition at line 66 of file commodityapo.hpp.
Real barrierLevel | ( | ) | const |
Definition at line 67 of file commodityapo.hpp.
Barrier::Type barrierType | ( | ) | const |
Definition at line 68 of file commodityapo.hpp.
Exercise::Type barrierStyle | ( | ) | const |
Definition at line 69 of file commodityapo.hpp.
Real effectiveStrike | ( | ) | const |
Real accrued | ( | const Date & | refDate | ) | const |
Definition at line 48 of file commodityapo.cpp.
|
private |
Definition at line 76 of file commodityapo.hpp.
|
private |
Definition at line 77 of file commodityapo.hpp.
|
private |
Definition at line 78 of file commodityapo.hpp.
|
private |
Definition at line 79 of file commodityapo.hpp.
|
private |
Definition at line 80 of file commodityapo.hpp.
|
private |
Definition at line 81 of file commodityapo.hpp.
|
private |
Definition at line 82 of file commodityapo.hpp.
|
private |
Definition at line 83 of file commodityapo.hpp.
|
private |
Definition at line 84 of file commodityapo.hpp.
|
private |
Definition at line 85 of file commodityapo.hpp.