hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Instrument.CapFloor

Synopsis

Documentation

type CapFloor = GenInstrument CCapFloor #

cap #

Arguments

:: GenLeg a

floatingLeg

-> [Double]

exerciseRates

-> IO CapFloor 

collar #

Arguments

:: GenLeg a

floatingLeg

-> [Double]

capRates

-> [Double]

floorRates

-> IO CapFloor 

floor #

Arguments

:: GenLeg a

floatingLeg

-> [Double]

exerciseRates

-> IO CapFloor 

atmRate :: CapFloor -> GenYieldTermStructure y -> IO Double #

implied term volatility

impliedVolatility #

Arguments

:: CapFloor 
-> Double

price

-> GenYieldTermStructure y

disc

-> Double

guess

-> Double

accuracy

-> Word

maxEvaluations

-> Double

minVol

-> Double

maxVol

-> IO Double 

Returns the n-th optionlet as a new CapFloor with only one cash flow.

optionlet #

Arguments

:: CapFloor 
-> Word

n

-> IO CapFloor