Options
All
  • Public
  • Public/Protected
  • All
Menu

Cap/floor smile volatility surface

This class provides the volatility for a given cap/floor interpolating a volatility surface whose elements are the market term volatilities of a set of caps/floors with given length and given strike.

Hierarchy

Implements

Index

Properties

_alwaysForward

_alwaysForward: boolean = false

_bdc

_calculated

_calculated: boolean = false

_calendar

_calendar: Calendar

_dayCounter

_dayCounter: DayCounter

Private _evaluationDate

_evaluationDate: Date

_extrapolate

_extrapolate: boolean

_frozen

_frozen: boolean = false

Private _interpolation

_interpolation: Interpolation2D

_isDisposed

_isDisposed: boolean = false

_moving

_moving: boolean

Private _nOptionTenors

_nOptionTenors: Size

Private _nStrikes

_nStrikes: Size

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

Private _optionDates

_optionDates: Date[]

Private _optionTenors

_optionTenors: Period[]

Private _optionTimes

_optionTimes: Time[]

_referenceDate

_referenceDate: Date

_settlementDays

_settlementDays: Natural

Private _strikes

_strikes: Rate[]

_updated

_updated: boolean

Private _volHandles

_volHandles: Array<Array<Handle<Quote>>>

Private _vols

_vols: Matrix

allowsExtrapolation

allowsExtrapolation: () => boolean

Type declaration

    • (): boolean
    • Returns boolean

alwaysForwardNotifications

alwaysForwardNotifications: () => void

Type declaration

    • (): void
    • Returns void

businessDayConvention

businessDayConvention: () => BusinessDayConvention

Type declaration

calculate

calculate: () => void

Type declaration

    • (): void
    • Returns void

calendar

calendar: () => Calendar

Type declaration

cftvsInit1

cftvsInit2

cftvsInit2: (referenceDate: Date, cal: Calendar, bdc: BusinessDayConvention, dc?: DayCounter) => CapFloorTermVolatilityStructure

Type declaration

cftvsInit3

cftvsInit3: (settlementDays: Natural, cal: Calendar, bdc: BusinessDayConvention, dc?: DayCounter) => CapFloorTermVolatilityStructure

Type declaration

checkRange1

checkRange1: (d: Date, extrapolate: boolean) => void

Type declaration

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

      • d: Date
      • extrapolate: boolean

      Returns void

checkRange2

checkRange2: (t: Time, extrapolate: boolean) => void

Type declaration

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

      • t: Time
      • extrapolate: boolean

      Returns void

checkStrike

checkStrike: (k: Rate, extrapolate: boolean) => void

Type declaration

    • (k: Rate, extrapolate: boolean): void
    • Parameters

      • k: Rate
      • extrapolate: boolean

      Returns void

dayCounter

dayCounter: () => DayCounter

Type declaration

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

disableExtrapolation

disableExtrapolation: (b: boolean) => void

Type declaration

    • (b: boolean): void
    • Parameters

      • b: boolean

      Returns void

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

enableExtrapolation

enableExtrapolation: (b: boolean) => void

Type declaration

    • (b: boolean): void
    • Parameters

      • b: boolean

      Returns void

freeze

freeze: () => void

Type declaration

    • (): void
    • Returns void

isDisposed

isDisposed: boolean

maxTime

maxTime: () => Time

Type declaration

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

optionDateFromTenor

optionDateFromTenor: (p: Period) => Date

Type declaration

recalculate

recalculate: () => void

Type declaration

    • (): void
    • Returns void

referenceDate

referenceDate: () => Date

Type declaration

    • (): Date
    • Returns Date

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

settlementDays

settlementDays: () => Natural

Type declaration

timeFromReference

timeFromReference: (date: Date) => Time

Type declaration

    • (date: Date): Time
    • Parameters

      • date: Date

      Returns Time

tsInit1

tsInit1: (dc: DayCounter) => TermStructure

Type declaration

tsInit2

tsInit2: (referenceDate: Date, calendar: Calendar, dc: DayCounter) => TermStructure

Type declaration

tsInit3

tsInit3: (settlementDays: Natural, calendar: Calendar, dc: DayCounter) => TermStructure

Type declaration

unfreeze

unfreeze: () => void

Type declaration

    • (): void
    • Returns void

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

volatility1

volatility1: (optT: Period, strike: Rate, extrap?: boolean) => Volatility

Type declaration

volatility2

volatility2: (d: Date, strike: Rate, extrap?: boolean) => Volatility

Type declaration

volatility3

volatility3: (t: Time, strike: Rate, extrap?: boolean) => Volatility

Type declaration

vtsInit1

Type declaration

vtsInit2

vtsInit2: (referenceDate: Date, cal: Calendar, bdc: BusinessDayConvention, dc?: DayCounter) => VolatilityTermStructure

Type declaration

vtsInit3

vtsInit3: (settlementDays: Natural, cal: Calendar, bdc: BusinessDayConvention, dc?: DayCounter) => VolatilityTermStructure

Type declaration

Methods

cftvsInit4

cftvsfInit1

cftvsfInit2

cftvsfInit3

Private checkInputs

  • checkInputs(): void
  • Returns void

Private initializeOptionDatesAndTimes

  • initializeOptionDatesAndTimes(): void
  • Returns void

Private interpolate

  • interpolate(): void
  • Returns void

maxDate

  • maxDate(): Date

maxStrike

minStrike

optionDates

  • optionDates(): Date[]
  • Returns Date[]

optionTenors

  • Returns Period[]

optionTimes

  • optionTimes(): Time[]
  • Returns Time[]

performCalculations

  • performCalculations(): void

Private registerWithMarketData

  • registerWithMarketData(): void
  • Returns void

strikes

  • Returns Rate[]

update

  • update(): void

volatilityImpl