24#include <ql/exercise.hpp>
25#include <ql/instruments/swaption.hpp>
26#include <ql/option.hpp>
27#include <ql/termstructures/volatility/volatilitytype.hpp>
28#include <ql/termstructures/yieldtermstructure.hpp>
44 const QuantLib::ext::shared_ptr<CommodityCashFlow>& shortAssetCashflow,
45 const ext::shared_ptr<Exercise>& exercise,
const Real quantity,
const Real strikePrice,
46 Option::Type type,
const QuantLib::Date& paymentDate = Date(),
49 Settlement::Type delivery = Settlement::Physical,
50 Settlement::Method settlementMethod = Settlement::PhysicalOTC);
108 :
public GenericEngine<CommoditySpreadOption::arguments, CommoditySpreadOption::results> {};
Arguments for commodity spread option calculation
Date longAssetLastPricingDate
QuantLib::ext::shared_ptr< CommodityCashFlow > longAssetFlow
QuantLib::ext::shared_ptr< FxIndex > longAssetFxIndex
QuantLib::ext::shared_ptr< CommodityCashFlow > shortAssetFlow
Settlement::Method settlementMethod
QuantLib::ext::shared_ptr< FxIndex > shortAssetFxIndex
Settlement::Type settlementType
void validate() const override
Date shortAssetLastPricingDate
base class for commodity spread option engines
QuantLib::Settlement::Type settlementType_
void setupArguments(PricingEngine::arguments *) const override
bool isExpired() const override
const QuantLib::ext::shared_ptr< CommodityCashFlow > & underlyingShortAssetFlow() const
const QuantLib::ext::shared_ptr< FxIndex > & shortAssetFxIndex() const
const QuantLib::ext::shared_ptr< FxIndex > & longAssetFxIndex() const
QuantLib::Settlement::Method settlementMethod_
bool isCalendarSpread() const
QuantLib::ext::shared_ptr< CommodityCashFlow > longAssetFlow_
const QuantLib::ext::shared_ptr< CommodityCashFlow > & underlyingLongAssetFlow() const
QuantLib::ext::shared_ptr< CommodityCashFlow > shortAssetFlow_
QuantLib::ext::shared_ptr< FxIndex > longAssetFxIndex_
QuantLib::ext::shared_ptr< FxIndex > shortAssetFxIndex_
Real effectiveStrike() const
Some data and logic shared among commodity cashflows.
Cash flow dependent on the average commodity spot price or future's settlement price over a period....