HQu-0.0.0.3: quantitative finance library
Safe HaskellNone
LanguageHaskell2010

Q.Payoff

Synopsis

Documentation

class Payoff a where Source #

Methods

payoff Source #

Arguments

:: Obs1 b 
=> a

The instrument.

-> b

The observable at the payoff time.

-> Cash

Payoff amount.

Instances

Instances details
Payoff StrikedPayoff Source # 
Instance details

Defined in Q.Payoff

Methods

payoff :: Obs1 b => StrikedPayoff -> b -> Cash Source #

data StrikedPayoff Source #

Path independent payoffs based on a fixed strike.

Constructors

PlainVanillaPayoff

Vanilla option payoff \(max (s - k, 0)\) for call and \(max (k - s, 0)\) for put

Fields

  • OptionType

    Call/Put indicator

  • Strike

    Strike \(k\) | Payoff with strike expressed as percentage

PercentagePayoff 

Fields

  • OptionType

    Call/Put indicator

  • Strike

    Strike in percentage. | Binary asset or nothing payoff.

AssetOrNothingPayoff 

Fields

CashOrNothingPayoff 

Fields

Instances

Instances details
Payoff StrikedPayoff Source # 
Instance details

Defined in Q.Payoff

Methods

payoff :: Obs1 b => StrikedPayoff -> b -> Cash Source #