finpricing.market.discount_curve_zero
#
Module Contents#
Classes#
- class finpricing.market.discount_curve_zero.DiscountCurve[source]#
- discount(date: finpricing.utils.date.Date | datetime.date)[source]#
discount factor for date
- class finpricing.market.discount_curve_zero.FlatForwardInterpolator(anchor_date: finpricing.utils.date.Date | datetime.date, spot_date, dates, rates, day_counter, continuous_compounding)[source]#
- class finpricing.market.discount_curve_zero.DiscountCurveZeroRates(anchor_date=None, dates: list[float] = None, rates: list[float] = None, spot_date=None, continuous_compounding: bool = True, interp_type=InterpTypes.FLAT_FWD_RATES, day_count_type: finpricing.utils.day_count.DayCountTypes = DayCountTypes.ACT_365)[source]#
Bases:
DiscountCurve
- discount(date: finpricing.utils.date.Date)[source]#
discount factor for date
- class finpricing.market.discount_curve_zero.DiscountCurveZeroShifted(underlying_curve: DiscountCurveZeroRates, alpha: float, beta: float = 1.0, day_count_type: finpricing.utils.day_count.DayCountTypes = DayCountTypes.ACT_365)[source]#
- discount(date: finpricing.utils.date.Date | datetime.date)[source]#
discount factor for date