Class FxSingleBarrierOption.Builder

    • Method Detail

      • underlyingOption

        public FxSingleBarrierOption.Builder underlyingOption​(FxVanillaOption underlyingOption)
        Sets the underlying FX vanilla option.
        Parameters:
        underlyingOption - the new value, not null
        Returns:
        this, for chaining, not null
      • barrier

        public FxSingleBarrierOption.Builder barrier​(Barrier barrier)
        Sets the barrier description.

        The barrier level stored in this field must be represented based on the direction of the currency pair in the underlying FX transaction.

        For example, if the underlying option is an option on EUR/GBP, the barrier should be a certain level of EUR/GBP rate.

        Parameters:
        barrier - the new value, not null
        Returns:
        this, for chaining, not null
      • rebate

        public FxSingleBarrierOption.Builder rebate​(CurrencyAmount rebate)
        Sets for a 'out' option, the amount is paid when the barrier is reached; for a 'in' option, the amount is paid at expiry if the barrier is not reached.

        This is the notional amount represented in one of the currency pair. The amount should be positive.

        Parameters:
        rebate - the new value
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<FxSingleBarrierOption>