25#ifndef quantext_commodity_forward_hpp
26#define quantext_commodity_forward_hpp
28#include <ql/currency.hpp>
29#include <ql/instrument.hpp>
30#include <ql/position.hpp>
67 const QuantLib::Currency&
payCcy = Currency(),
const Date&
fixingDate = Date(),
68 const QuantLib::ext::shared_ptr<QuantExt::FxIndex>&
fxIndex =
nullptr);
79 const QuantLib::ext::shared_ptr<CommodityIndex>&
index()
const {
return index_; }
93 QuantLib::ext::shared_ptr<CommodityIndex>
index_;
109 QuantLib::ext::shared_ptr<CommodityIndex>
index;
QuantLib::Date maturityDate
QuantLib::Position::Type position
QuantLib::ext::shared_ptr< FxIndex > fxIndex
QuantLib::ext::shared_ptr< CommodityIndex > index
QuantLib::Date paymentDate
QuantLib::Currency currency
void validate() const override
QuantLib::ext::shared_ptr< FxIndex > fxIndex_
bool isExpired() const override
const QuantLib::ext::shared_ptr< CommodityIndex > & index() const
QuantLib::Currency currency_
QuantLib::ext::shared_ptr< QuantExt::FxIndex > fxIndex() const
const QuantLib::Date & maturityDate() const
QuantLib::Date paymentDate_
QuantLib::ext::shared_ptr< CommodityIndex > index_
QuantLib::Position::Type position() const
const QuantLib::Currency & currency() const
void setupArguments(QuantLib::PricingEngine::arguments *) const override
const QuantLib::Date & paymentDate() const
QuantLib::Real quantity() const
QuantLib::Position::Type position_
QuantLib::Date maturityDate_
QuantLib::Real strike() const
bool physicallySettled() const
commodity index class for holding commodity spot and futures price histories and forwarding.