hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.InterestRate

Synopsis

Documentation

interestRate :: Double -> DayCounter -> Compounding -> Frequency -> IO InterestRate #

compound factor implied by the rate compounded between two dates returns the compound (a.k.a capitalization) factor implied by the rate compounded between two dates.

compoundFactor #

Arguments

:: InterestRate 
-> Double

t

-> IO Double 

discount factor implied by the rate compounded between two dates

compoundFactor' #

Arguments

:: InterestRate 
-> Day

d1

-> Day

d2

-> Day

refStart

-> Day

refEnd

-> IO Double 

compound factor implied by the rate compounded at time t. returns the compound (a.k.a capitalization) factor implied by the rate compounded at time t. Warning Time must be measured using InterestRate's own day counter.

discountFactor :: InterestRate -> Double -> IO Double #

equivalent rate for a compounding period between two dates The resulting rate is calculated taking the required day-counting rule into account.

discountFactor' #

Arguments

:: InterestRate 
-> Day

d1

-> Day

d2

-> Day

refStart

-> Day

refEnd

-> IO Double 

discount factor implied by the rate compounded at time t. Warning Time must be measured using InterestRate's own day counter.

equivalentRate #

implied rate for a given compound factor between two dates. The resulting rate is calculated taking the required day-counting rule into account.

equivalentRate' #

Arguments

:: InterestRate 
-> DayCounter

resultDC

-> Compounding 
-> Frequency 
-> Day

d1

-> Day

d2

-> Day

refStart

-> Day

refEnd

-> IO InterestRate 

equivalent interest rate for a compounding period t. The resulting InterestRate shares the same implicit day-counting rule of the original InterestRate instance. Warning Time must be measured using the InterestRate's own day counter.

impliedRate' #

Arguments

:: InterestRate 
-> Double

compound

-> DayCounter 
-> Compounding 
-> Frequency 
-> Day

d1

-> Day

d2

-> Day

refStart

-> Day

refEnd

-> IO InterestRate 

implied interest rate for a given compound factor at a given time. The resulting InterestRate has the day-counter provided as input. Warning Time must be measured using the day-counter provided as input.