hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Instrument.Swap

Synopsis

Documentation

type Swaption = GenOption CSwaption #

type Swap = GenSwap CSwap #

type VanillaSwap = GenSwap CVanillaSwap #

type AssetSwap = GenSwap CAssetSwap #

type OvernightIndexedSwap = GenSwap COvernightIndexedSwap #

type BMASwap = GenSwap CBMASwap #

asSwap :: GenSwap a -> IO Swap #

impliedVolatility #

Arguments

:: Swaption 
-> Double

price

-> GenYieldTermStructure y 
-> Double

guess

-> Double

accuracy

-> Word

maxEvaluations

-> Double

minVol

-> Double

maxVol

-> IO Double 

implied volatility

data SwapType #

Constructors

Receiver 
Payer 

Instances

Instances details
Enum SwapType # 
Instance details

Defined in QuantLib.Instrument.Swap

Show SwapType # 
Instance details

Defined in QuantLib.Instrument.Swap

Eq SwapType # 
Instance details

Defined in QuantLib.Instrument.Swap

swap' #

Arguments

:: [(Leg, Bool)]

(legs, payer)

-> IO Swap 

Multi leg constructor.

swap :: GenLeg a -> GenLeg a -> IO Swap #

The cash flows belonging to the first leg are paid; the ones belonging to the second leg are received.

bmaSwap #

Arguments

:: SwapType 
-> Double

nominal

-> Schedule

liborSchedule

-> Double

liborFraction

-> Double

liborSpread

-> GenIborIndex a 
-> DayCounter

liborDayCount

-> Schedule

bmaSchedule

-> BMAIndex 
-> DayCounter

bmaDayCount

-> IO BMASwap 

vanillaSwap #

Arguments

:: SwapType 
-> Double

nominal

-> Schedule

fixedSchedule

-> Double

fixedRate

-> DayCounter

fixedDayCount

-> Schedule

floatSchedule

-> GenIborIndex a 
-> Double

spread

-> DayCounter

floatingDayCount

-> BusinessDayConvention

paymentConvention

-> IO VanillaSwap 

endDiscounts :: GenSwap a -> Word -> IO Double #

leg :: GenSwap a -> Word -> IO Leg #

legBPS :: GenSwap a -> Word -> IO Double #

legNPV :: GenSwap a -> Word -> IO Double #

maturityDate :: GenSwap a -> IO (Maybe Day) #

npvDateDiscount :: GenSwap a -> IO Double #

startDate :: GenSwap a -> IO (Maybe Day) #

startDiscounts :: GenSwap a -> Word -> IO Double #

assetSwap #

Arguments

:: Bool

payBondCoupon

-> Bond 
-> Double

bondCleanPrice

-> GenIborIndex a 
-> Double 
-> Schedule

floatSchedule

-> DayCounter

floatingDayCount

-> Bool

parAssetSwap

-> IO AssetSwap 

overnightIndexedSwap #

Arguments

:: SwapType 
-> Double

nominal

-> Schedule 
-> Double

fixedRate

-> DayCounter

fixedDC

-> OvernightIborIndex 
-> Double

spread

-> IO OvernightIndexedSwap 

overnightIndexedSwap' #

Arguments

:: SwapType 
-> [Double]

nominals

-> Schedule

schedule

-> Double

fixedRate

-> DayCounter

fixedDC

-> OvernightIborIndex 
-> Double

spread

-> IO OvernightIndexedSwap 

class HasSpread a where #

Methods

fairSpread :: a -> IO Double #

Instances

Instances details
HasSpread AssetSwap # 
Instance details

Defined in QuantLib.Instrument.Swap

HasSpread CreditDefaultSwap # 
Instance details

Defined in QuantLib.Instrument.Swap

HasSpread OvernightIndexedSwap # 
Instance details

Defined in QuantLib.Instrument.Swap

HasSpread VanillaSwap # 
Instance details

Defined in QuantLib.Instrument.Swap