quantlib.termstructures.yields.piecewise_yield_curve.ForwardRateCubicPiecewiseYieldCurve.zero_rate

ForwardRateCubicPiecewiseYieldCurve.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:
dDate or Time

Time or date used to calcule the zero-yield rate.

day_counterDayCounter

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