Struct CpiCoupon
pub struct CpiCoupon {
pub accrual_start: NaiveDate,
pub accrual_end: NaiveDate,
pub payment_date: NaiveDate,
pub notional: f64,
pub fixed_rate: f64,
pub day_count: DayCountFraction,
pub accrual: f64,
pub payment_ordinal: i32,
pub currency: Currency,
pub index: String,
pub lag_months: u32,
pub base_index: f64,
}Expand description
A CPI coupon: notional · rate · tau · I(end)/base, paid on the payment
date — a real rate on a notional carried up by a price index.
I(end) is the index observed for the accrual end under the index’s own
lag and interpolation — the observation a linker’s coupon and an inflation
swap’s ratio make, read through the same seam — a published print first
and the inflation curve otherwise. base_index is the contract’s base
level, stated on the term sheet, not observed.
Fields§
§accrual_start: NaiveDateAccrual start.
accrual_end: NaiveDateAccrual end, and the date the index is observed for.
payment_date: NaiveDatePayment date.
notional: f64The notional before indexation. Contract data.
fixed_rate: f64The real rate, as a decimal. Contract data.
day_count: DayCountFractionThe accrual day count.
accrual: f64The accrual year fraction under day_count, evaluated once at build.
payment_ordinal: i32The payment date as a proleptic-Gregorian day number.
currency: CurrencyThe coupon’s currency.
index: StringThe price index’s registry code, the key its curve and prints are
stored under (US-CPI-U, UK-RPI).
lag_months: u32The observation lag, in months.
base_index: f64The base index level the ratio is taken against. Contract data.