Hastructure
Safe HaskellNone
LanguageHaskell2010

Hedge

Synopsis

Documentation

data RateSwap Source #

Constructors

RateSwap 

Fields

Instances

Instances details
UseRate RateSwap Source # 
Instance details

Defined in Hedge

QueryByComment RateSwap Source # 
Instance details

Defined in Hedge

Liable RateSwap Source # 
Instance details

Defined in Hedge

FromJSON RateSwap Source # 
Instance details

Defined in Hedge

ToJSON RateSwap Source # 
Instance details

Defined in Hedge

Generic RateSwap Source # 
Instance details

Defined in Hedge

Associated Types

type Rep RateSwap 
Instance details

Defined in Hedge

Methods

from :: RateSwap -> Rep RateSwap x #

to :: Rep RateSwap x -> RateSwap #

Show RateSwap Source # 
Instance details

Defined in Hedge

Eq RateSwap Source # 
Instance details

Defined in Hedge

Ord RateSwap Source # 
Instance details

Defined in Hedge

type Rep RateSwap Source # 
Instance details

Defined in Hedge

data RateCap Source #

Constructors

RateCap 

Fields

Instances

Instances details
UseRate RateCap Source # 
Instance details

Defined in Hedge

QueryByComment RateCap Source # 
Instance details

Defined in Hedge

FromJSON RateCap Source # 
Instance details

Defined in Hedge

ToJSON RateCap Source # 
Instance details

Defined in Hedge

Generic RateCap Source # 
Instance details

Defined in Hedge

Methods

from :: RateCap -> Rep RateCap x #

to :: Rep RateCap x -> RateCap #

Show RateCap Source # 
Instance details

Defined in Hedge

Eq RateCap Source # 
Instance details

Defined in Hedge

Methods

(==) :: RateCap -> RateCap -> Bool #

(/=) :: RateCap -> RateCap -> Bool #

Ord RateCap Source # 
Instance details

Defined in Hedge

type Rep RateCap Source # 
Instance details

Defined in Hedge

data RateSwapType Source #

Constructors

FloatingToFloating Floater Floater

Paying Floating rate and receiving Floating Rate

FloatingToFixed Floater IRate

Paying Floating Rate and receiving Fixed Rate

FixedToFloating IRate Floater

Paying Fixed Rate and receiving Floating rate

FormulaToFloating DealStats Floater

Paying Formula Rate and receiving Floating rate

FloatingToFormula Floater DealStats

Paying Floating Rate and receiving Formula rate

Instances

Instances details
FromJSON RateSwapType Source # 
Instance details

Defined in Hedge

ToJSON RateSwapType Source # 
Instance details

Defined in Hedge

Generic RateSwapType Source # 
Instance details

Defined in Hedge

Associated Types

type Rep RateSwapType 
Instance details

Defined in Hedge

type Rep RateSwapType = D1 ('MetaData "RateSwapType" "Hedge" "Hastructure-0.50.4-C46IQoFqEMALLVrlvHB4m" 'False) ((C1 ('MetaCons "FloatingToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: C1 ('MetaCons "FloatingToFixed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRate))) :+: (C1 ('MetaCons "FixedToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRate) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: (C1 ('MetaCons "FormulaToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DealStats) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: C1 ('MetaCons "FloatingToFormula" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DealStats)))))
Show RateSwapType Source # 
Instance details

Defined in Hedge

Eq RateSwapType Source # 
Instance details

Defined in Hedge

Ord RateSwapType Source # 
Instance details

Defined in Hedge

type Rep RateSwapType Source # 
Instance details

Defined in Hedge

type Rep RateSwapType = D1 ('MetaData "RateSwapType" "Hedge" "Hastructure-0.50.4-C46IQoFqEMALLVrlvHB4m" 'False) ((C1 ('MetaCons "FloatingToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: C1 ('MetaCons "FloatingToFixed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRate))) :+: (C1 ('MetaCons "FixedToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRate) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: (C1 ('MetaCons "FormulaToFloating" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DealStats) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater)) :+: C1 ('MetaCons "FloatingToFormula" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Floater) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DealStats)))))

data RateSwapBase Source #

Constructors

Fixed Balance

a fixed balance as notional base

Base DealStats

a referece as notional base

Schedule Ts

a predfiend schedule of notional balance

Instances

Instances details
FromJSON RateSwapBase Source # 
Instance details

Defined in Hedge

ToJSON RateSwapBase Source # 
Instance details

Defined in Hedge

Generic RateSwapBase Source # 
Instance details

Defined in Hedge

Associated Types

type Rep RateSwapBase 
Instance details

Defined in Hedge

Show RateSwapBase Source # 
Instance details

Defined in Hedge

Eq RateSwapBase Source # 
Instance details

Defined in Hedge

Ord RateSwapBase Source # 
Instance details

Defined in Hedge

type Rep RateSwapBase Source # 
Instance details

Defined in Hedge

accrueIRS :: Date -> RateSwap -> RateSwap Source #

The accrueIRS will calculate the Net amount ( payble with negative, positve with receivable) of Rate Swap

payoutIRS :: Date -> Amount -> RateSwap -> RateSwap Source #

set rate swap to state of payout all possible cash to counterparty

receiveIRS :: Date -> RateSwap -> RateSwap Source #

set rate swap to state of receive all cash from counterparty

data CurrencySwap Source #

Constructors

CurrencySwap 

Fields

Instances

Instances details
FromJSON CurrencySwap Source # 
Instance details

Defined in Hedge

ToJSON CurrencySwap Source # 
Instance details

Defined in Hedge

Generic CurrencySwap Source # 
Instance details

Defined in Hedge

Associated Types

type Rep CurrencySwap 
Instance details

Defined in Hedge

type Rep CurrencySwap = D1 ('MetaData "CurrencySwap" "Hedge" "Hastructure-0.50.4-C46IQoFqEMALLVrlvHB4m" 'False) (C1 ('MetaCons "CurrencySwap" 'PrefixI 'True) (S1 ('MetaSel ('Just "csBalance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Balance)))
Show CurrencySwap Source # 
Instance details

Defined in Hedge

Eq CurrencySwap Source # 
Instance details

Defined in Hedge

Ord CurrencySwap Source # 
Instance details

Defined in Hedge

type Rep CurrencySwap Source # 
Instance details

Defined in Hedge

type Rep CurrencySwap = D1 ('MetaData "CurrencySwap" "Hedge" "Hastructure-0.50.4-C46IQoFqEMALLVrlvHB4m" 'False) (C1 ('MetaCons "CurrencySwap" 'PrefixI 'True) (S1 ('MetaSel ('Just "csBalance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Balance)))

data SRT Source #

Constructors

SRT 

Fields

Instances

Instances details
UseRate SRT Source # 
Instance details

Defined in Hedge

Liable SRT Source # 
Instance details

Defined in Hedge

Generic SRT Source # 
Instance details

Defined in Hedge

Methods

from :: SRT -> Rep SRT x #

to :: Rep SRT x -> SRT #

Show SRT Source # 
Instance details

Defined in Hedge

Methods

showsPrec :: Int -> SRT -> ShowS #

show :: SRT -> String #

showList :: [SRT] -> ShowS #

Eq SRT Source # 
Instance details

Defined in Hedge

Methods

(==) :: SRT -> SRT -> Bool #

(/=) :: SRT -> SRT -> Bool #

Ord SRT Source # 
Instance details

Defined in Hedge

Methods

compare :: SRT -> SRT -> Ordering #

(<) :: SRT -> SRT -> Bool #

(<=) :: SRT -> SRT -> Bool #

(>) :: SRT -> SRT -> Bool #

(>=) :: SRT -> SRT -> Bool #

max :: SRT -> SRT -> SRT #

min :: SRT -> SRT -> SRT #

type Rep SRT Source # 
Instance details

Defined in Hedge

data SrtType Source #

Constructors

SrtByEndDay DealStats DatePattern

autu accrue by end of day

Instances

Instances details
Generic SrtType Source # 
Instance details

Defined in Hedge

Associated Types

type Rep SrtType 
Instance details

Defined in Hedge

Methods

from :: SrtType -> Rep SrtType x #

to :: Rep SrtType x -> SrtType #

Show SrtType Source # 
Instance details

Defined in Hedge

Eq SrtType Source # 
Instance details

Defined in Hedge

Methods

(==) :: SrtType -> SrtType -> Bool #

(/=) :: SrtType -> SrtType -> Bool #

Ord SrtType Source # 
Instance details

Defined in Hedge

type Rep SrtType Source # 
Instance details

Defined in Hedge