Options
All
  • Public
  • Public/Protected
  • All
Menu

Helper class building a sequence of capped/floored CPI coupons.

Also allowing for the inflated notional at the end... especially if there is only one date in the schedule. If a fixedRate is zero you get a FixedRateCoupon, otherwise you get a ZeroInflationCoupon.

payoff is: spread + fixedRate x index

Hierarchy

  • CPILeg

Implements

Index

Constructors

constructor

Properties

Private _baseCPI

_baseCPI: Real

Private _caps

_caps: Rate[]

Private _exCouponAdjustment

_exCouponAdjustment: BusinessDayConvention

Private _exCouponCalendar

_exCouponCalendar: Calendar

Private _exCouponEndOfMonth

_exCouponEndOfMonth: boolean

Private _exCouponPeriod

_exCouponPeriod: Period

Private _fixedRates

_fixedRates: Real[]

Private _fixingDays

_fixingDays: Natural[]

Private _floors

_floors: Rate[]

Private _index

Private _notionals

_notionals: Real[]

Private _observationInterpolation

_observationInterpolation: InterpolationType

Private _observationLag

_observationLag: Period

Private _paymentAdjustment

_paymentAdjustment: BusinessDayConvention

Private _paymentCalendar

_paymentCalendar: Calendar

Private _paymentDayCounter

_paymentDayCounter: DayCounter

Private _schedule

_schedule: Schedule

Private _spreads

_spreads: Spread[]

Private _subtractInflationNominal

_subtractInflationNominal: boolean

Methods

f

withCaps1

  • Parameters

    Returns CPILeg

withCaps2

  • Parameters

    Returns CPILeg

withExCouponPeriod

withFixedRates1

  • Parameters

    Returns CPILeg

withFixedRates2

  • Parameters

    • fixedRates: Real[]

    Returns CPILeg

withFixingDays1

  • Parameters

    Returns CPILeg

withFixingDays2

  • Parameters

    Returns CPILeg

withFloors1

  • Parameters

    Returns CPILeg

withFloors2

  • Parameters

    Returns CPILeg

withNotionals1

  • Parameters

    Returns CPILeg

withNotionals2

  • Parameters

    Returns CPILeg

withObservationInterpolation

withPaymentAdjustment

withPaymentCalendar

  • Parameters

    Returns CPILeg

withPaymentDayCounter

  • Parameters

    Returns CPILeg

withSpreads1

  • Parameters

    Returns CPILeg

withSpreads2

  • Parameters

    Returns CPILeg

withSubtractInflationNominal

  • withSubtractInflationNominal(growthOnly: boolean): CPILeg
  • Parameters

    • growthOnly: boolean

    Returns CPILeg