ImpliedTermStructure¶
- class ImpliedTermStructure(HandleYieldTermStructure h, Date reference_date)¶
Bases:
YieldTermStructureImplied term structure at a given date in the future.
The given date will be the implied reference date.
This term structure will remain linked to the original structure; any changes in the latter will be reflected in this structure as well.
- Parameters:
- h
HandleYieldTermStructure The handle to the original yield term structure.
- reference_date
Date The new reference date for the implied curve.
- h
- Attributes:
calendarCalendar: calendarday_counterDayCounter: day counter- extrapolation
max_dateDate: the latest date for which the curve can return valuesmax_timeTime: the latest time for which the curve can return valuesreference_dateDate: the date at which discount = 1.0 and/or variance = 0.0settlement_daysint: number of settlement days used for reference date calculation
Methods
discount(self, value, bool extrapolate=False)forward_rate(self, d1, d2, ...)Returns the forward interest rate between two dates or times.
time_from_reference(self, Date dt)date/time conversion
zero_rate(self, d, ...)Returns the implied zero-yield rate for the given date.