hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Instrument.CapFloor

Synopsis

Types

type CapFloor = GenInstrument CCapFloor Source #

An Instrument; see the hierarchy under GenInstrument.

Constructors

cap Source #

Arguments

:: GenLeg l

floatingLeg

-> NonEmpty Double

exerciseRates

-> IO CapFloor 

constructs a cap: pays the excess of the floating leg's rate over each exercise rate, if positive

collar Source #

Arguments

:: GenLeg l

floatingLeg

-> NonEmpty Double

capRates

-> NonEmpty Double

floorRates

-> IO CapFloor 

constructs a collar: a cap struck at the cap rates combined with a floor struck at the floor rates

floor Source #

Arguments

:: GenLeg l

floatingLeg

-> NonEmpty Double

exerciseRates

-> IO CapFloor 

constructs a floor: pays the excess of each exercise rate over the floating leg's rate, if positive

optionlet Source #

Arguments

:: CapFloor 
-> Word

n

-> IO CapFloor 

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

Inspectors

atmRate Source #

Arguments

:: CapFloor 
-> GenYieldTermStructure y

discountCurve

-> IO Double 

returns the fair (at-the-money) rate for the cap/floor's underlying floating leg, discounted on the given curve

impliedVolatility Source #

Arguments

:: CapFloor 
-> Double

price

-> GenYieldTermStructure y

disc

-> Double

guess

-> Double

accuracy

-> Word

maxEvaluations

-> Double

minVol

-> Double

maxVol

-> VolatilityType

type

-> Double

displacement

-> IO Double 

implied term volatility