39 QuantLib::Natural offset = 0,
bool forOption =
false)
override;
42 bool forOption =
false)
override;
45 bool forOption =
false)
override;
65 QuantLib::Date
expiry(QuantLib::Day dayOfMonth, QuantLib::Month contractMonth, QuantLib::Year contractYear,
66 QuantLib::Natural monthOffset,
bool forOption)
const;
Perform date calculations for future contracts based on conventions.
QuantLib::Date nextExpiry(const QuantLib::Date &referenceDate, bool forOption) const
Do the next expiry work.
QuantLib::Date nextExpiry(bool includeExpiry=true, const QuantLib::Date &referenceDate=QuantLib::Date(), QuantLib::Natural offset=0, bool forOption=false) override
QuantLib::Date avoidProhibited(const QuantLib::Date &expiry, bool forOption) const
Account for prohibited expiries.
QuantLib::Date expiry(QuantLib::Day dayOfMonth, QuantLib::Month contractMonth, QuantLib::Year contractYear, QuantLib::Natural monthOffset, bool forOption) const
Given a contractMonth, a contractYear and conventions, calculate the contract expiry date.
ConventionsBasedFutureExpiry(const std::string &commName, QuantLib::Size maxIterations=10)
QuantLib::Date priorExpiry(bool includeExpiry=true, const QuantLib::Date &referenceDate=QuantLib::Date(), bool forOption=false) override
QuantLib::Date applyFutureMonthOffset(const QuantLib::Date &contractDate, Natural futureMonthOffset) override
QuantLib::Date expiryDate(const QuantLib::Date &contractDate, QuantLib::Natural monthOffset=0, bool forOption=false) override
CommodityFutureConvention convention_
QuantLib::Size maxIterations() const
Return the maximum iterations parameter.
QuantLib::Date contractDate(const QuantLib::Date &expiryDate) override
QuantLib::Size maxIterations_
const CommodityFutureConvention & commodityFutureConvention() const
Return the commodity future convention.
Currency and instrument specific conventions/defaults.
Serializable Credit Default Swap.