30#include <ql/time/calendars/nullcalendar.hpp>
37 const QuantLib::DayCounter& dc,
38 const QuantLib::ext::shared_ptr<FutureExpiryCalculator>& basisFec,
39 const QuantLib::ext::shared_ptr<CommodityIndex>&
baseIndex,
40 const QuantLib::ext::shared_ptr<FutureExpiryCalculator>& baseFec,
bool addBasis =
true,
50 const QuantLib::ext::shared_ptr<FutureExpiryCalculator>& basisFec,
51 const QuantLib::ext::shared_ptr<CommodityIndex>&
baseIndex,
52 const QuantLib::ext::shared_ptr<FutureExpiryCalculator>& baseFec,
bool addBasis =
true,
72 QuantLib::ext::shared_ptr<FutureExpiryCalculator>
basisFec_;
74 QuantLib::ext::shared_ptr<FutureExpiryCalculator>
baseFec_;
bool averagingBaseCashflow_
QuantLib::Size monthOffset() const
bool priceAsHistoricalFixing() const
QuantLib::ext::shared_ptr< FutureExpiryCalculator > baseFec_
const QuantLib::ext::shared_ptr< CommodityIndex > & baseIndex() const
const QuantLib::ext::shared_ptr< FutureExpiryCalculator > & baseFutureExpiryCalculator() const
const QuantLib::ext::shared_ptr< FutureExpiryCalculator > & basisFutureExpiryCalculator() const
Inspectors.
bool averagingBaseCashflow() const
CommodityBasisPriceTermStructure(const QuantLib::Date &referenceDate, const QuantLib::ext::shared_ptr< FutureExpiryCalculator > &basisFec, const QuantLib::ext::shared_ptr< CommodityIndex > &baseIndex, const QuantLib::ext::shared_ptr< FutureExpiryCalculator > &baseFec, bool addBasis=true, QuantLib::Size monthOffset=0, bool averagingBaseCashflow=false, bool priceAsHistoricalFixing=true)
QuantLib::Size monthOffset_
QuantLib::ext::shared_ptr< FutureExpiryCalculator > basisFec_
QuantLib::ext::shared_ptr< CommodityIndex > baseIndex_
CommodityBasisPriceTermStructure(const QuantLib::Date &referenceDate, const QuantLib::Calendar &cal, const QuantLib::DayCounter &dc, const QuantLib::ext::shared_ptr< FutureExpiryCalculator > &basisFec, const QuantLib::ext::shared_ptr< CommodityIndex > &baseIndex, const QuantLib::ext::shared_ptr< FutureExpiryCalculator > &baseFec, bool addBasis=true, QuantLib::Size monthOffset=0, bool averagingBaseCashflow=false, bool priceAsHistoricalFixing=true)
bool priceAsHistoricalFixing_
Base class for classes that perform date calculations for future contracts.
Term structure of prices.