Class FixedCouponBondOption.Builder

    • Method Detail

      • longShort

        public FixedCouponBondOption.Builder longShort​(LongShort longShort)
        Sets whether the option is long or short.

        Long indicates that the owner has the right to exercise the option at expiry.

        Parameters:
        longShort - the new value, not null
        Returns:
        this, for chaining, not null
      • expiryDate

        public FixedCouponBondOption.Builder expiryDate​(AdjustableDate expiryDate)
        Sets the expiry date of the option.

        This is the last date that the option can be exercised.

        This date is typically set to be a valid business day. However, the businessDayAdjustment property may be set to provide a rule for adjustment.

        Parameters:
        expiryDate - the new value, not null
        Returns:
        this, for chaining, not null
      • expiryTime

        public FixedCouponBondOption.Builder expiryTime​(LocalTime expiryTime)
        Sets the expiry time of the option.

        The expiry time is related to the expiry date and time-zone.

        Parameters:
        expiryTime - the new value, not null
        Returns:
        this, for chaining, not null
      • expiryZone

        public FixedCouponBondOption.Builder expiryZone​(ZoneId expiryZone)
        Sets the time-zone of the expiry time.

        The expiry time-zone is related to the expiry date and time.

        Parameters:
        expiryZone - the new value, not null
        Returns:
        this, for chaining, not null
      • quantity

        public FixedCouponBondOption.Builder quantity​(double quantity)
        Sets the quantity that was traded.

        This will be positive if buying (call) and negative if selling (put).

        Parameters:
        quantity - the new value
        Returns:
        this, for chaining, not null
      • cleanStrikePrice

        public FixedCouponBondOption.Builder cleanStrikePrice​(double cleanStrikePrice)
        Sets the clean price at which the option can be exercised, in decimal form.

        The "clean" price excludes any accrued interest.

        Strata uses decimal prices for bonds in the trade model, pricers and market data. For example, a price of 99.32% is represented in Strata by 0.9932.

        Parameters:
        cleanStrikePrice - the new value
        Returns:
        this, for chaining, not null
      • settlementDate

        public FixedCouponBondOption.Builder settlementDate​(AdjustableDate settlementDate)
        Sets the settlement date when the option is exercised.

        This date is typically set to be a valid business day. However, the businessDayAdjustment property may be set to provide a rule for adjustment.

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

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