finpricing.market
#
Submodules#
Package Contents#
Classes#
- class finpricing.market.SurvivalCurveNelsonSiegel(anchor_date: finpricing.utils.date.Date | datetime.date, pivot_dates: list[finpricing.utils.date.Date | datetime.date], params: list[float] = None)[source]#
Bases:
SurvivalCurve
- survival(date: finpricing.utils.date.Date | datetime.date)[source]#
- class finpricing.market.SurvivalCurveStep(anchor_date: finpricing.utils.Date | finpricing.utils.datetime.date, dates: List[finpricing.utils.Date | finpricing.utils.datetime.date], hazard_rates: List[float], day_count_type=DayCountTypes.ACT_ACT_ISDA)[source]#
- survival(date: finpricing.utils.datetime.date | finpricing.utils.Date) float [source]#
- class finpricing.market.CDSCurve(market_date: datetime.date | finpricing.utils.Date, expiries: List[datetime.date | finpricing.utils.Date], spreads: List[float], upfronts: List[float], cds_style: finpricing.utils.CDSStyle | str)[source]#