hasquant
Safe HaskellNone
LanguageHaskell2010

QuantLib.Instrument.Option

Documentation

type Option = GenOption COption #

asOption :: GenOption a -> IO Option #

asOneAssetOption :: GenOneAssetOption a -> IO OneAssetOption #

type CdsOption = GenOption CCdsOption #

type BarrierOption = GenOneAssetOption CBarrierOption #

type ForwardVanillaOption = GenOneAssetOption CForwardVanillaOption #

type MargrabeOption = GenMultiAssetOption CMargrabeOption #

type MultiAssetOption = GenMultiAssetOption CMultiAssetOption #

type OneAssetOption = GenOneAssetOption COneAssetOption #

type QuantoBarrierOption = GenOption CQuantoBarrierOption #

type QuantoForwardVanillaOption = GenOption CQuantoForwardVanillaOption #

type QuantoVanillaOption = GenOneAssetOption CQuantoVanillaOption #

type VanillaOption = GenOneAssetOption CVanillaOption #

data SwingExercise #

Constructors

SwingListExercise ![(Day, Word)]

(dates, seconds)

SwingIntervalExercise !Day !Day !Word

stepSizeSecs

data StrikedPayoff #

Constructors

AssetOrNothing 

Fields

CashOrNothing 

Fields

Gap 

Fields

PercentageStrike !PercentageStrikePayoff 
PlainVanilla !PlainVanillaPayoff 
SuperFund 

Fields

SuperSharePayoff 

Fields

data PlainVanillaPayoff #

Constructors

PlainVanillaPayoff 

Fields

data PercentageStrikePayoff #

Constructors

PercentageStrikePayoff 

Fields

data Payoff #

Constructors

DoubleStickyRatchet 

Fields

ForwardType 

Fields

RatchetMax 

Fields

RatchetMin 

Fields

Ratchet 

Fields

StickyMax 

Fields

StickyMin 

Fields

Sticky 

Fields

Type !TypePayoff 
Basket !BasketPayoff 

barrierOption #

Arguments

:: BarrierType 
-> Double

barrier

-> Double

rebate

-> StrikedPayoff 
-> Exercise 
-> IO BarrierOption 

forwardVanillaOption #

Arguments

:: Double

moneyness

-> Day

resetDate

-> StrikedPayoff 
-> Exercise 
-> IO ForwardVanillaOption 

margrabeOption #

Arguments

:: Int

Q1

-> Int

Q2

-> Exercise 
-> IO MargrabeOption 

deltaForward :: GenOneAssetOption a -> IO Double #

elasticity :: GenOneAssetOption a -> IO Double #

itmCashProbability :: GenOneAssetOption a -> IO Double #

strikeSensitivity :: GenOneAssetOption a -> IO Double #

thetaPerDay :: GenOneAssetOption a -> IO Double #

himalayaOption #

Arguments

:: [Day]

fixingDates

-> Double

strike

-> IO MultiAssetOption 

pagodaOption #

Arguments

:: [Day]

fixingDates

-> Double

roof

-> Double

fraction

-> IO MultiAssetOption 

discreteAveragingAsianOption #

Arguments

:: AverageType 
-> Double

runningAccumulator, the running sum or products of past fixings

-> Word

pastFixings

-> [Day]

fixingDates

-> StrikedPayoff 
-> Exercise 
-> IO OneAssetOption 

vanillaSwingOption #

Arguments

:: StrikedPayoff 
-> SwingExercise 
-> Word

minExerciseRights

-> Word

maxExerciseRights

-> IO OneAssetOption 

class VolatileOption a where #

Methods

impliedVolatility #

Arguments

:: a 
-> Double

price

-> GeneralizedBlackScholesProcess

process

-> Double

accuracy

-> Word

maxEvaluations

-> Double

minVol

-> Double

maxVol

-> IO Double