YoYInflationIndex¶
- class YoYInflationIndex(family_name, Region region, bool revised, Frequency frequency, Period availability_lag, Currency currency, HandleYoYInflationTermStructure ts=HandleYoYInflationTermStructure())¶
Bases:
ZeroInflationIndexBase class for year-on-year inflation indexes.
These may be quoted indices published on, say, Bloomberg, or can be defined as the ratio of an index at different time points.
- Parameters:
- family_namestr
The family name of the index.
- region
Region The region of the index.
- revisedbool
Whether the index is revised.
- frequency
Frequency The frequency of the index.
- availability_lag
Period The availability lag of the index.
- currency
Currency The currency of the index.
- ts
YoYInflationTermStructure, optional The year-on-year inflation term structure.
- Attributes:
availability_lagThe availability lag of the index.
currencyThe currency of the inflation index.
family_nameThe family name of the inflation index.
fixing_calendarthe calendar defining valid fixing dates
frequencyThe publication frequency of the inflation index.
last_fixing_dateReturns the last date for which a fixing was provided.
namethe name of the index
regionThe region of the index.
time_seriesthe fixing TimeSeries
- yoy_inflation_term_structure
zero_inflation_term_structureReturns the zero-inflation term structure associated with the index.
Methods
add_fixing(self, Date fixingDate, ...)add_fixings(self, list dates, list values, ...)clear_fixings(self)fixing(self, Date fixingDate, ...)has_historical_fixing(self, Date d)is_valid_fixing_date(self, Date fixing_date)