hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.InterestRate

Synopsis

Types

data AccrualPeriod Source #

A compounding period: a year fraction in the rate's own day counter, or a date range.

Constructors

AccrualAtTime !Double 
AccrualBetween !Day !Day !(Maybe Day) !(Maybe Day)

d1, d2, refStart, refEnd

Instances

Instances details
Show AccrualPeriod Source # 
Instance details

Defined in QuantLib.InterestRate

Eq AccrualPeriod Source # 
Instance details

Defined in QuantLib.InterestRate

data EquivalentPeriod Source #

As AccrualPeriod, for equivalentRate: only the date form takes a result day counter, the time form keeps the rate's own.

Constructors

EquivalentAtTime !Double 
EquivalentBetween !DayCounter !Day !Day !(Maybe Day) !(Maybe Day)

resultDC, d1, d2, refStart, refEnd

Constructors

interestRate Source #

Arguments

:: Double

r

-> DayCounter 
-> Compounding 
-> Frequency 
-> IO InterestRate 

construct an interest rate from a rate value, a day counter, a compounding convention and a frequency.

Inspectors

compoundFactor :: InterestRate -> AccrualPeriod -> IO Double Source #

Compound (capitalization) factor implied by the rate over the given period.

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

Discount factor implied by the rate over the given period.

equivalentRate :: InterestRate -> Compounding -> Frequency -> EquivalentPeriod -> IO InterestRate Source #

Equivalent rate under a different compounding and frequency over the given period.

impliedRate :: InterestRate -> Double -> DayCounter -> Compounding -> Frequency -> AccrualPeriod -> IO InterestRate Source #

Rate implied by a given compound factor over the given period, in the supplied day counter.

rate :: InterestRate -> Double Source #

the rate value of an interest rate.