hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Instrument

Synopsis

Documentation

type Instrument = GenInstrument CInstrument #

asInstrument :: GenInstrument a -> IO Instrument #

npv :: GenInstrument a -> IO Double #

Returns the net present value of the given Instrument

returns the error estimate on the NPV when available.

errorEstimate :: GenInstrument a -> IO Double #

returns whether the instrument might have value greater than zero.

isExpired :: GenInstrument a -> IO Bool #

returns the date the net present value refers to.

valuationDate :: GenInstrument a -> IO Day #

setPricingEngine :: GenInstrument a -> PricingEngine -> IO () #