Documentation of 'org.jquantlib.instruments.CashOrNothingPayoff' Java class
CashOrNothingPayoff
org.jquantlib.instruments

Class CashOrNothingPayoff

  • All Implemented Interfaces:
    PolymorphicVisitable


    public class CashOrNothingPayoff
    extends StrikedTypePayoff
    Binary cash-or-nothing payoff which pays off nothing if the underlying asset price finishes below/above the strike price , or pays out a predetermined constant amount if the underlying asset finishes above/below the strike price.

    Definitions of Binary path-independent payoffs can be found in M. Rubinstein, E. Reiner:"Unscrambling The Binary Code", Risk, Vol.4 no.9,1991.

    See Also:
    Binary Options
    • Constructor Detail

      • CashOrNothingPayoff

        public CashOrNothingPayoff(Option.Type type,
                                   double strike,
                                   double cashPayoff)
        Constructs a typed Payoff with a fixed strike price and the policy of a cash-or-nothing payoff
        Parameters:
        type - is an Option.Type
        strike - is the strike price
        cashPayoff - is the cash payoff value
    • Method Detail

      • getCashPayoff

        public final double getCashPayoff()
        Returns:
        the cash payoff value
      • name

        public java.lang.String name()
        Specified by:
        name in class Payoff
      • get

        public final double get(double price)
        Returns the value of an Instrument at maturity under Payoff conditions

        Pays off nothing if the underlying asset price finishes below/above the strike price , or pays out a predermined constant amount if the underlying asset finishes above/below the strike price.

      • CALL Option: if , otherwise zero
      • PUT Option: if , otherwise zero
      • where is the asset price at maturity and is the predetermined cash payoff
Specified by:
get in class Payoff
Skip navigation links

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.