quantlib.termstructures.yields.piecewise_yield_curve.DiscountBackwardFlatPiecewiseYieldCurve.zero_rate¶
- DiscountBackwardFlatPiecewiseYieldCurve.zero_rate(self, d, DayCounter day_counter=None, Compounding compounding=Compounding.Continuous, Frequency frequency=Annual, bool extrapolate=False)¶
Returns the implied zero-yield rate for the given date.
The time is calculated as a fraction of year from the reference date.
- Parameters:
- d
Date
or Time Time or date used to calcule the zero-yield rate.
- day_counter
DayCounter
The day counter used to compute the time.
- compoundingint
The compounding as defined in quantlib.compounding
- frequencyint
A frequency as defined in quantlib.time.date
- extrapolatebool, optional
Default to False
- d