| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
QuantLib.Time.Schedule
Synopsis
- data DayCounterConstructor
- = Actual360
- | Actual364
- | Actual365FixedStandard
- | Actual365FixedCanadian
- | Actual365FixedNoLeap
- | ActualActualISMA
- | ActualActualBond
- | ActualActualISDA
- | ActualActualHistorical
- | ActualActualActual365
- | ActualActualAFB
- | ActualActualEuro
- | One
- | Simple
- | Thirty360USA
- | Thirty360BondBasis
- | Thirty360European
- | Thirty360EurobondBasis
- | Thirty360Italian
- | Thirty360German
- | Thirty360ISMA
- | Thirty360ISDA
- | Thirty360NASD
- | Thirty365
- | Business252 !Calendar
- data DayCounter
- dayCounter :: DayCounterConstructor -> IO DayCounter
- days :: DayCounter -> Day -> Day -> IO Int
- years :: DayCounter -> Day -> Day -> Maybe Day -> Maybe Day -> IO Double
- data Schedule
- schedule :: Maybe Day -> Day -> (Word, TimeUnit) -> Calendar -> BusinessDayConvention -> BusinessDayConvention -> DateGenerationRule -> Bool -> Maybe Day -> Maybe Day -> IO Schedule
- fromDates :: [Day] -> Calendar -> BusinessDayConvention -> IO Schedule
- until :: Schedule -> Day -> IO Schedule
- dates :: Schedule -> IO [Day]
- data DateGenerationRule
- = Backward
- | Forward
- | Zero
- | ThirdWednesday
- | Twentieth
- | TwentiethIMM
- | OldCDS
- | CDS
- | CDS2015
- fromFrequency :: Frequency -> IO (Word, TimeUnit)
- toFrequency :: (Word, TimeUnit) -> IO Frequency
- parse :: String -> IO (Int, TimeUnit)
- add :: (Int, TimeUnit) -> (Int, TimeUnit) -> IO (Int, TimeUnit)
- divide :: (Int, TimeUnit) -> Int -> IO (Int, TimeUnit)
- lessThan :: (Int, TimeUnit) -> (Int, TimeUnit) -> IO Bool
- normalize :: (Int, TimeUnit) -> IO (Int, TimeUnit)
- data TimeUnit
- = Days
- | Weeks
- | Months
- | Years
- | Hours
- | Minutes
- | Seconds
- | Milliseconds
- | Microseconds
- data Frequency
Documentation
data DayCounterConstructor #
Constructors
Instances
| Show DayCounterConstructor # | |
Defined in QuantLib.Internal.CalendarEnum Methods showsPrec :: Int -> DayCounterConstructor -> ShowS # show :: DayCounterConstructor -> String # showList :: [DayCounterConstructor] -> ShowS # | |
| Eq DayCounterConstructor # | |
Defined in QuantLib.Internal.CalendarEnum Methods (==) :: DayCounterConstructor -> DayCounterConstructor -> Bool # (/=) :: DayCounterConstructor -> DayCounterConstructor -> Bool # | |
data DayCounter #
Instances
| Show DayCounter # | |
Defined in QuantLib.Internal.Type Methods showsPrec :: Int -> DayCounter -> ShowS # show :: DayCounter -> String # showList :: [DayCounter] -> ShowS # | |
| Eq DayCounter # | |
Defined in QuantLib.Internal.Type | |
years :: DayCounter -> Day -> Day -> Maybe Day -> Maybe Day -> IO Double #
Returns the period between two dates as a fraction of year.
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!
data DateGenerationRule #
Constructors
| Backward | |
| Forward | |
| Zero | |
| ThirdWednesday | |
| Twentieth | |
| TwentiethIMM | |
| OldCDS | |
| CDS | |
| CDS2015 |
Instances
| Enum DateGenerationRule # | |
Defined in QuantLib.Time.Schedule Methods succ :: DateGenerationRule -> DateGenerationRule # pred :: DateGenerationRule -> DateGenerationRule # toEnum :: Int -> DateGenerationRule # fromEnum :: DateGenerationRule -> Int # enumFrom :: DateGenerationRule -> [DateGenerationRule] # enumFromThen :: DateGenerationRule -> DateGenerationRule -> [DateGenerationRule] # enumFromTo :: DateGenerationRule -> DateGenerationRule -> [DateGenerationRule] # enumFromThenTo :: DateGenerationRule -> DateGenerationRule -> DateGenerationRule -> [DateGenerationRule] # | |
| Show DateGenerationRule # | |
Defined in QuantLib.Time.Schedule Methods showsPrec :: Int -> DateGenerationRule -> ShowS # show :: DateGenerationRule -> String # showList :: [DateGenerationRule] -> ShowS # | |
| Eq DateGenerationRule # | |
Defined in QuantLib.Time.Schedule Methods (==) :: DateGenerationRule -> DateGenerationRule -> Bool # (/=) :: DateGenerationRule -> DateGenerationRule -> Bool # | |
fromFrequency :: Frequency -> IO (Word, TimeUnit) #
returns a Frequency from a given Period (e.g. SemiAnnual from 6M)
Constructors
| Days | |
| Weeks | |
| Months | |
| Years | |
| Hours | |
| Minutes | |
| Seconds | |
| Milliseconds | |
| Microseconds |
Instances
| Bounded TimeUnit # | |
| Enum TimeUnit # | |
Defined in QuantLib.Internal.Enum | |
| Show TimeUnit # | |
| Eq TimeUnit # | |
Constructors
| NoFrequency | |
| Once | |
| Annual | |
| Semiannual | |
| EveryFourthMonth | |
| Quarterly | |
| Bimonthly | |
| Monthly | |
| EveryFourthWeek | |
| Biweekly | |
| Weekly | |
| Daily | |
| OtherFrequency |
Instances
| Bounded Frequency # | |
| Enum Frequency # | |
Defined in QuantLib.Time.Schedule Methods succ :: Frequency -> Frequency # pred :: Frequency -> Frequency # fromEnum :: Frequency -> Int # enumFrom :: Frequency -> [Frequency] # enumFromThen :: Frequency -> Frequency -> [Frequency] # enumFromTo :: Frequency -> Frequency -> [Frequency] # enumFromThenTo :: Frequency -> Frequency -> Frequency -> [Frequency] # | |
| Show Frequency # | |
| Eq Frequency # | |