| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
QuantLib.Instrument.Option
Documentation
asOneAssetOption :: GenOneAssetOption a -> IO OneAssetOption #
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 ExerciseType #
Instances
| Enum ExerciseType # | |
Defined in QuantLib.Internal.Enum Methods succ :: ExerciseType -> ExerciseType # pred :: ExerciseType -> ExerciseType # toEnum :: Int -> ExerciseType # fromEnum :: ExerciseType -> Int # enumFrom :: ExerciseType -> [ExerciseType] # enumFromThen :: ExerciseType -> ExerciseType -> [ExerciseType] # enumFromTo :: ExerciseType -> ExerciseType -> [ExerciseType] # enumFromThenTo :: ExerciseType -> ExerciseType -> ExerciseType -> [ExerciseType] # | |
| Show ExerciseType # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> ExerciseType -> ShowS # show :: ExerciseType -> String # showList :: [ExerciseType] -> ShowS # | |
| Eq ExerciseType # | |
Defined in QuantLib.Internal.Enum | |
Constructors
| AmericanExercise | |
| Early !ExerciseType !Bool | |
| Vanilla !ExerciseType | |
| European !EuropeanExercise | |
| Bermudan !BermudanExercise | |
data EuropeanExercise #
Constructors
| EuropeanExercise Day |
data BermudanExercise #
Constructors
| BermudanExercise ![Day] !Bool | |
| Swing SwingExercise |
data SwingExercise #
Constructors
| SwingListExercise ![(Day, Word)] | (dates, seconds) |
| SwingIntervalExercise !Day !Day !Word | stepSizeSecs |
data OptionType #
Instances
| Enum OptionType # | |
Defined in QuantLib.Internal.Enum Methods succ :: OptionType -> OptionType # pred :: OptionType -> OptionType # toEnum :: Int -> OptionType # fromEnum :: OptionType -> Int # enumFrom :: OptionType -> [OptionType] # enumFromThen :: OptionType -> OptionType -> [OptionType] # enumFromTo :: OptionType -> OptionType -> [OptionType] # enumFromThenTo :: OptionType -> OptionType -> OptionType -> [OptionType] # | |
| Show OptionType # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> OptionType -> ShowS # show :: OptionType -> String # showList :: [OptionType] -> ShowS # | |
| Eq OptionType # | |
Defined in QuantLib.Internal.Enum | |
data PositionType #
Instances
| Enum PositionType # | |
Defined in QuantLib.Internal.Enum Methods succ :: PositionType -> PositionType # pred :: PositionType -> PositionType # toEnum :: Int -> PositionType # fromEnum :: PositionType -> Int # enumFrom :: PositionType -> [PositionType] # enumFromThen :: PositionType -> PositionType -> [PositionType] # enumFromTo :: PositionType -> PositionType -> [PositionType] # enumFromThenTo :: PositionType -> PositionType -> PositionType -> [PositionType] # | |
| Show PositionType # | |
Defined in QuantLib.Internal.Enum Methods showsPrec :: Int -> PositionType -> ShowS # show :: PositionType -> String # showList :: [PositionType] -> ShowS # | |
| Eq PositionType # | |
Defined in QuantLib.Internal.Enum | |
data StrikedPayoff #
Constructors
| AssetOrNothing | |
Fields
| |
| CashOrNothing | |
Fields
| |
| Gap | |
Fields
| |
| PercentageStrike !PercentageStrikePayoff | |
| PlainVanilla !PlainVanillaPayoff | |
| SuperFund | |
| SuperSharePayoff | |
data PlainVanillaPayoff #
Constructors
| PlainVanillaPayoff | |
Fields
| |
data PercentageStrikePayoff #
Constructors
| PercentageStrikePayoff | |
Fields
| |
data BasketPayoff #
Constructors
| DoubleStickyRatchet | |
| ForwardType | |
Fields
| |
| RatchetMax | |
| RatchetMin | |
| Ratchet | |
| StickyMax | |
| StickyMin | |
| Sticky | |
| Type !TypePayoff | |
| Basket !BasketPayoff | |
data TypePayoff #
Constructors
| Striked !StrikedPayoff | |
| Floating !OptionType | type |
Arguments
| :: BarrierType | |
| -> Double | barrier |
| -> Double | rebate |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO BarrierOption |
Arguments
| :: Double | moneyness |
| -> Day | resetDate |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO ForwardVanillaOption |
delta1 :: MargrabeOption -> IO Double #
delta2 :: MargrabeOption -> IO Double #
gamma1 :: MargrabeOption -> IO Double #
gamma2 :: MargrabeOption -> IO Double #
Arguments
| :: Int | Q1 |
| -> Int | Q2 |
| -> Exercise | |
| -> IO MargrabeOption |
multiAssetOption :: Payoff -> Exercise -> IO MultiAssetOption #
deltaForward :: GenOneAssetOption a -> IO Double #
elasticity :: GenOneAssetOption a -> IO Double #
itmCashProbability :: GenOneAssetOption a -> IO Double #
oneAssetOption :: Payoff -> Exercise -> IO OneAssetOption #
strikeSensitivity :: GenOneAssetOption a -> IO Double #
thetaPerDay :: GenOneAssetOption a -> IO Double #
Arguments
| :: BarrierType | |
| -> Double | barrier |
| -> Double | rebate |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO QuantoBarrierOption |
Arguments
| :: Double | moneyness |
| -> Day | resetDate |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO QuantoForwardVanillaOption |
vanillaOption :: StrikedPayoff -> Exercise -> IO VanillaOption #
basketOption :: BasketPayoff -> Exercise -> IO MultiAssetOption #
Arguments
| :: [Day] | fixingDates |
| -> Double | strike |
| -> IO MultiAssetOption |
Arguments
| :: [Day] | fixingDates |
| -> Double | roof |
| -> Double | fraction |
| -> IO MultiAssetOption |
Arguments
| :: PercentageStrikePayoff | |
| -> EuropeanExercise | maturity |
| -> [Day] | resetDates |
| -> IO OneAssetOption |
continuousFixedLookbackOption #
Arguments
| :: Double | currentMinmax |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO OneAssetOption |
continuousFloatingLookbackOption #
Arguments
| :: Double | currentMinmax |
| -> TypePayoff | |
| -> Exercise | |
| -> IO OneAssetOption |
discreteAveragingAsianOption #
Arguments
| :: AverageType | |
| -> Double | runningAccumulator, the running sum or products of past fixings |
| -> Word | pastFixings |
| -> [Day] | fixingDates |
| -> StrikedPayoff | |
| -> Exercise | |
| -> IO OneAssetOption |
Arguments
| :: BermudanExercise | |
| -> Double | |
| -> Double | load |
| -> Double | changeRate |
| -> IO OneAssetOption |
Arguments
| :: StrikedPayoff | |
| -> SwingExercise | |
| -> Word | minExerciseRights |
| -> Word | maxExerciseRights |
| -> IO OneAssetOption |
europeanOption :: StrikedPayoff -> Exercise -> IO VanillaOption #
class VolatileOption a where #
Methods
Instances
| VolatileOption BarrierOption # | |
Defined in QuantLib.Instrument.Option Methods impliedVolatility :: BarrierOption -> Double -> GeneralizedBlackScholesProcess -> Double -> Word -> Double -> Double -> IO Double # | |
| VolatileOption VanillaOption # | |
Defined in QuantLib.Instrument.Option Methods impliedVolatility :: VanillaOption -> Double -> GeneralizedBlackScholesProcess -> Double -> Word -> Double -> Double -> IO Double # | |
class QuantoOption a where #
Instances
| QuantoOption QuantoBarrierOption # | |
Defined in QuantLib.Instrument.Option Methods qrho :: QuantoBarrierOption -> IO Double # qvega :: QuantoBarrierOption -> IO Double # qlambda :: QuantoBarrierOption -> IO Double # | |
| QuantoOption QuantoForwardVanillaOption # | |
Defined in QuantLib.Instrument.Option Methods qrho :: QuantoForwardVanillaOption -> IO Double # qvega :: QuantoForwardVanillaOption -> IO Double # | |
| QuantoOption QuantoVanillaOption # | |
Defined in QuantLib.Instrument.Option Methods qrho :: QuantoVanillaOption -> IO Double # qvega :: QuantoVanillaOption -> IO Double # qlambda :: QuantoVanillaOption -> IO Double # | |
class OptionOnAsset a where #
Methods
dividendRho :: a -> IO Double #
Instances
| OptionOnAsset MultiAssetOption # | |
Defined in QuantLib.Instrument.Option Methods delta :: MultiAssetOption -> IO Double # gamma :: MultiAssetOption -> IO Double # rho :: MultiAssetOption -> IO Double # theta :: MultiAssetOption -> IO Double # vega :: MultiAssetOption -> IO Double # dividendRho :: MultiAssetOption -> IO Double # | |
| OptionOnAsset OneAssetOption # | |
Defined in QuantLib.Instrument.Option Methods delta :: OneAssetOption -> IO Double # gamma :: OneAssetOption -> IO Double # rho :: OneAssetOption -> IO Double # theta :: OneAssetOption -> IO Double # vega :: OneAssetOption -> IO Double # dividendRho :: OneAssetOption -> IO Double # | |