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

Class AssetOrNothingPayoff

  • All Implemented Interfaces:
    PolymorphicVisitable


    public class AssetOrNothingPayoff
    extends StrikedTypePayoff
    Binary asset-or-nothing payoff which pays off nothing if the underlying asset price finishes below/above the strike price , or pays out the asset price itself 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

      • AssetOrNothingPayoff

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

      • 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 the asset price itself 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
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.