hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.TermStructure.Volatility

Synopsis

Documentation

data BlackVarianceSurfaceExtrapolation #

data ExtendedBlackVarianceSurfaceExtrapolation #

Instances

Instances details
Enum ExtendedBlackVarianceSurfaceExtrapolation # 
Instance details

Defined in QuantLib.TermStructure.Volatility

Show ExtendedBlackVarianceSurfaceExtrapolation # 
Instance details

Defined in QuantLib.TermStructure.Volatility

Eq ExtendedBlackVarianceSurfaceExtrapolation # 
Instance details

Defined in QuantLib.TermStructure.Volatility

type BlackVarianceCurve = GenBlackVolTermStructure CBlackVarianceCurve #

type BlackVolTermStructure = GenBlackVolTermStructure CBlackVolTermStructure #

type GenBlackVolTermStructure a = GenVolatilityTermStructure (AnyOf CBlackVolTermStructure' a) #

type CallableBondVolatilityStructure = GenTermStructure CCallableBondVolatilityStructure #

type CapFloorTermVolSurface = GenVolatilityTermStructure CCapFloorTermVolSurface #

type LocalVolTermStructure = GenVolatilityTermStructure CLocalVolTermStructure #

type OptionletVolatilityStructure = GenVolatilityTermStructure COptionletVolatilityStructure #

type SwaptionVolatilityStructure = GenVolatilityTermStructure CSwaptionVolatilityStructure #

type VolatilityTermStructure = GenVolatilityTermStructure CVolatilityTermStructure #

type GenVolatilityTermStructure a = GenTermStructure (AnyOf CVolatilityTermStructure' a) #

constantOptionletVolatility' :: Word -> Calendar -> BusinessDayConvention -> GenQuote a -> DayCounter -> IO OptionletVolatilityStructure #

Constant caplet volatility, no time-strike dependence floating reference date, floating market data

constantSwaptionVolatility' :: Day -> Calendar -> BusinessDayConvention -> GenQuote a -> DayCounter -> IO SwaptionVolatilityStructure #

fixed reference date, floating market data

floating reference date, floating market data

blackVarianceForPeriod' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> (Word, TimeUnit)

swapTenor

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option date and swap tenor

blackVarianceForPeriod #

Arguments

:: SwaptionVolatilityStructure 
-> Double 
-> (Word, TimeUnit) 
-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option time and swap tenor

blackVarianceForTenor #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option tenor and swap length

blackVariance' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option date and swap length

blackVariance #

Arguments

:: SwaptionVolatilityStructure 
-> Double

optionTime

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option time and swap length

blackVarianceForPeriods #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> (Word, TimeUnit)

swapTenor

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the Black variance for a given option tenor and swap tenor

maxSwapLength :: SwaptionVolatilityStructure -> IO Double #

the largest swapLength for which the term structure can return vols

the largest length for which the term structure can return vols

maxSwapTenor :: SwaptionVolatilityStructure -> IO (Int, TimeUnit) #

returns the smile for a given option date and swap tenor

smileSectionForPeriod' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> (Word, TimeUnit)

swapTenor

-> Bool

extrapolate

-> IO SmileSection 

smileSectionForPeriod #

Arguments

:: SwaptionVolatilityStructure 
-> Double

optionTime

-> (Word, TimeUnit)

swapTenor

-> Bool

extrapolate

-> IO SmileSection 

returns the smile for a given option time and swap tenor

smileSectionForTenor #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> Double

swapLength

-> Bool

extrapolate

-> IO SmileSection 

returns the smile for a given option tenor and swap length

smileSection' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> Double

swapLength

-> Bool

extr

-> IO SmileSection 

returns the smile for a given option date and swap length

smileSection #

Arguments

:: SwaptionVolatilityStructure 
-> Double

optionTime

-> Double

swapLength

-> Bool

extr

-> IO SmileSection 

returns the smile for a given option time and swap length

smileSectionForPeriods #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> (Word, TimeUnit)

swapTenor

-> Bool

extr

-> IO SmileSection 

returns the smile for a given option tenor and swap tenor

swapLength' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

start

-> Day

end

-> IO Double 

implements the conversion between swap dates and swap (time) length

swapLength :: SwaptionVolatilityStructure -> (Word, TimeUnit) -> IO Double #

implements the conversion between swap tenor and swap (time) length

returns the volatility for a given option date and swap tenor

volatilityForPeriod' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> (Word, TimeUnit)

swapTenor

-> Double

strike

-> Bool

extrapolate

-> IO Double 

volatilityForPeriod #

Arguments

:: SwaptionVolatilityStructure 
-> Double

optionTime

-> (Word, TimeUnit)

swapTenor

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the volatility for a given option time and swap tenor

volatilityForTenor #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the volatility for a given option tenor and swap length

volatilityForTenor' #

Arguments

:: SwaptionVolatilityStructure 
-> Day

optionDate

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the volatility for a given option date and swap length

volatility #

Arguments

:: SwaptionVolatilityStructure 
-> Double

optionTime

-> Double

swapLength

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the volatility for a given option time and swap length

volatilityForPeriods #

Arguments

:: SwaptionVolatilityStructure 
-> (Word, TimeUnit)

optionTenor

-> (Word, TimeUnit)

swapTenor

-> Double

strike

-> Bool

extrapolate

-> IO Double 

returns the volatility for a given option tenor and swap tenor

callableBondConstantVolatility :: Day -> GenQuote a -> DayCounter -> IO CallableBondVolatilityStructure #

fixed reference date, floating market data

constantCapFloorTermVolatility' :: Day -> Calendar -> BusinessDayConvention -> GenQuote a -> DayCounter -> IO VolatilityTermStructure #

floating reference date, floating market data

capFloorTermVolCurve :: Word -> Calendar -> BusinessDayConvention -> [(Word, TimeUnit, GenQuote a)] -> DayCounter -> IO VolatilityTermStructure #

floating reference date, floating market data

capFloorTermVolCurve' :: Day -> Calendar -> BusinessDayConvention -> [(Word, TimeUnit, GenQuote a)] -> DayCounter -> IO VolatilityTermStructure #

fixed reference date, floating market data

blackVarianceCurve #

Arguments

:: Day 
-> [(Day, Double)] 
-> DayCounter 
-> Bool

forceMonotoneVariance

-> Maybe Interpolation 
-> IO BlackVarianceCurve 

capFloorTermVolSurface #

Arguments

:: Word 
-> Calendar 
-> BusinessDayConvention 
-> [(Word, TimeUnit)]

optionTenors

-> [Double]

strikes

-> Matrix (GenQuote a)

volatilities

-> DayCounter 
-> IO CapFloorTermVolSurface 

floating reference date, floating market data

capFloorTermVolSurface' #

Arguments

:: Day 
-> Calendar 
-> BusinessDayConvention 
-> [(Word, TimeUnit)]

optionTenors

-> [Double]

strikes

-> Matrix (GenQuote a)

volatilities

-> DayCounter 
-> IO CapFloorTermVolSurface 

fixed reference date, floating market data

blackVarianceSurface #

Arguments

:: Day 
-> Calendar 
-> [Day]

dates

-> [Double]

strikes

-> Matrix Double

blackVolMatrix

-> DayCounter 
-> BlackVarianceSurfaceExtrapolation

lowerExtrapolation

-> BlackVarianceSurfaceExtrapolation

upperExtrapolation

-> IO BlackVolTermStructure