Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides cpi cap/floor prices by interpolation and put/call parity (not cap/floor/swap* parity).

The inflation index MUST contain a ZeroInflationTermStructure as this is used to create ATM. Unlike YoY price surfaces we assume that 1) an ATM ZeroInflationTermStructure is available and 2) that it is safe to use it. This is supported by the fact that no stripping is required for CPI cap/floors as they only give one flow.

cpi cap/floors have a single (one) flow (unlike nominal caps) because they observe cumulative inflation up to their maturity. Options are on CPI(T)/CPI(0) but strikes are quoted for yearly average inflation, so require transformation via (1+quote)^T to obtain actual strikes. These are consistent with ZCIIS quoting conventions.

The observationLag is that for the referenced instrument prices. Strikes are as-quoted not as-used.

Hierarchy

Implements

Index

Properties

_baseRate

_baseRate: Rate

Private _bdc

Protected _cPrice

_cPrice: Matrix

Protected _cStrikes

_cStrikes: Rate[]

_calendar

_calendar: Calendar

Protected _cfMaturities

_cfMaturities: Period[]

Protected _cfMaturityTimes

_cfMaturityTimes: Real[]

Protected _cfStrikes

_cfStrikes: Rate[]

_dayCounter

_dayCounter: DayCounter

_extrapolate

_extrapolate: boolean

Protected _fPrice

_fPrice: Matrix

Protected _fStrikes

_fStrikes: Rate[]

_frequency

_frequency: Frequency

_indexIsInterpolated

_indexIsInterpolated: boolean

_isDisposed

_isDisposed: boolean = false

_moving

_moving: boolean

Private _nominal

_nominal: Real

_nominalTermStructure

_nominalTermStructure: Handle<YieldTermStructure>

_observables

_observables: Set<Observable> = new Set()

_observationLag

_observationLag: Period

_observers

_observers: Set<Observer> = new Set()

_referenceDate

_referenceDate: Date

_seasonality

_seasonality: Seasonality

_settlementDays

_settlementDays: Natural

_updated

_updated: boolean

Protected _zii

allowsExtrapolation

allowsExtrapolation: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

disableExtrapolation

disableExtrapolation: (b?: boolean) => void

Type declaration

    • (b?: boolean): void
    • Parameters

      • Optional b: boolean

      Returns void

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

enableExtrapolation

enableExtrapolation: (b?: boolean) => void

Type declaration

    • (b?: boolean): void
    • Parameters

      • Optional b: boolean

      Returns void

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

Methods

baseDate

  • baseDate(): Date

baseRate

businessDayConvention

calendar

  • the calendar used for reference and/or option date calculation

    Returns Calendar

capPrice1

  • Parameters

    Returns Real

capPrice2

  • Parameters

    Returns Real

capPrices

  • Returns Matrix

capStrikes

  • capStrikes(): Rate[]
  • Returns Rate[]

Protected checkMaturity

  • checkMaturity(d: Date): boolean
  • Parameters

    • d: Date

    Returns boolean

checkRange1

  • checkRange1(d: Date, extrapolate: boolean): void

checkRange2

  • checkRange2(t: Time, extrapolate: boolean): void

Protected checkStrike

  • checkStrike(K: Rate): boolean
  • Parameters

    Returns boolean

cpiOptionDateFromTenor

  • cpiOptionDateFromTenor(p: Period): Date
  • Parameters

    Returns Date

cpicftpsInit

dayCounter

floorPrice1

  • Parameters

    Returns Real

floorPrice2

  • Parameters

    Returns Real

floorPrices

  • Returns Matrix

floorStrikes

  • floorStrikes(): Rate[]
  • Returns Rate[]

frequency

hasSeasonality

  • hasSeasonality(): boolean

indexIsInterpolated

  • indexIsInterpolated(): boolean

itsInit1

itsInit2

itsInit3

maturities

  • Returns Period[]

maxDate

  • maxDate(): Date
  • Returns Date

maxStrike

  • Returns Rate

maxTime

  • the latest time for which the curve can return values

    Returns Time

minDate

  • minDate(): Date
  • Returns Date

minStrike

  • Returns Rate

nominal

  • Returns Real

nominalTermStructure

observationLag

price1

  • Parameters

    Returns Real

price2

  • Parameters

    Returns Real

referenceDate

  • referenceDate(): Date
  • the date at which discount = 1.0 and/or variance = 0.0

    Returns Date

seasonality

setBaseRate

  • setBaseRate(r: Rate): void

setSeasonality

  • Functions to set and get seasonality.

    Calling setSeasonality with no arguments means unsetting as the default is used to choose unsetting.

    Parameters

    Returns void

settlementDays

strikes

  • Returns Rate[]

timeFromReference

  • timeFromReference(d: Date): Time

tsInit1

tsInit2

tsInit3

update

  • update(): void

zeroInflationIndex