QuantLib: a free/open-source library for quantitative finance
Reference manual - version 1.40
Loading...
Searching...
No Matches
AssetOrNothingPayoff Class Reference

Binary asset-or-nothing payoff. More...

#include <ql/instruments/payoffs.hpp>

Inheritance diagram for AssetOrNothingPayoff:

Public Member Functions

 AssetOrNothingPayoff (Option::Type type, Real strike)
Payoff interface
std::string name () const override
Real operator() (Real price) const override
void accept (AcyclicVisitor &) override
std::string description () const override
Real strike () const
Public Member Functions inherited from TypePayoff
Option::Type optionType () const
std::string description () const override
Public Member Functions inherited from Payoff

Additional Inherited Members

 StrikedTypePayoff (Option::Type type, Real strike)
 TypePayoff (Option::Type type)
Real strike_
Option::Type type_

Detailed Description

Binary asset-or-nothing payoff.

Definitions of Binary path-independent payoffs used below, can be found in M. Rubinstein, E. Reiner:"Unscrambling The Binary Code", Risk, Vol.4 no.9,1991. (see: http://www.in-the-money.com/artandpap/Binary%20Options.doc)

Member Function Documentation

◆ name()

std::string name ( ) const
overridevirtual
Warning
This method is used for output and comparison between payoffs. It is not meant to be used for writing switch-on-type code.

Implements Payoff.

◆ operator()()

Real operator() ( Real price) const
overridevirtual

Implements Payoff.

◆ accept()

void accept ( AcyclicVisitor & )
overridevirtual

Reimplemented from Payoff.