finpricing.market.discount_curve_zero#

Module Contents#

Classes#

DiscountCurve

FlatForwardInterpolator

DiscountCurveZeroRates

DiscountCurveZeroShifted

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]#
run_continuous_flat_forward_rates()[source]#

“derive forward rates using ontinuous compounding

continuous_discount(dt)[source]#

“discount using continuous compounding

_annual_discount(rate, time)[source]#
run_annual_compounding()[source]#

derive forward rates using annual compounding

annual_discount(dt)[source]#

discount using annual compounding

eval(dt)[source]#

“evaluate discount factor for dt using the correct discounting method

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