hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Time.Schedule

Synopsis

Documentation

data DayCounter #

Instances

Instances details
Show DayCounter # 
Instance details

Defined in QuantLib.Internal.Type

Eq DayCounter # 
Instance details

Defined in QuantLib.Internal.Type

days :: DayCounter -> Day -> Day -> IO Int #

Returns the number of days between two dates.

years :: DayCounter -> Day -> Day -> Maybe Day -> Maybe Day -> IO Double #

Returns the period between two dates as a fraction of year.

data Schedule #

schedule #

Arguments

:: Maybe Day

effectiveDate

-> Day

terminationDate

-> (Word, TimeUnit)

tenor

-> Calendar

calendar

-> BusinessDayConvention

convention

-> BusinessDayConvention

terminationDateConvention

-> DateGenerationRule

rule

-> Bool

endOfMonth

-> Maybe Day

firstDate

-> Maybe Day

nextToLastDate

-> IO Schedule 

fromDates :: [Day] -> Calendar -> BusinessDayConvention -> IO Schedule #

truncated schedule XXX Introduce another Schedule type with restricted interface? moreover, a fixed rate bond can be constructed from a full schedule only!

until :: Schedule -> Day -> IO Schedule #

returns the dates for the given Schedule object

dates :: Schedule -> IO [Day] #

returns a Period from a given Frequency (e.g. 6M from SemiAnnual)

fromFrequency :: Frequency -> IO (Word, TimeUnit) #

returns a Frequency from a given Period (e.g. SemiAnnual from 6M)

add :: (Int, TimeUnit) -> (Int, TimeUnit) -> IO (Int, TimeUnit) #