Class IborFutureSecurity

  • All Implemented Interfaces:
    RateIndexSecurity, Security, Serializable, org.joda.beans.Bean, org.joda.beans.ImmutableBean

    public final class IborFutureSecurity
    extends Object
    implements RateIndexSecurity, org.joda.beans.ImmutableBean, Serializable
    A security representing a futures contract based on an Ibor index.

    An Ibor future is a financial instrument that is based on the future value of an Ibor index interest rate. The profit or loss of an Ibor future is settled daily. An Ibor future is also known as a STIR future (Short Term Interest Rate).

    For example, the widely traded "CME Eurodollar futures contract" has a notional of 1 million USD, is based on the USD Libor 3 month rate 'USD-LIBOR-3M', expiring two business days before an IMM date (the 3rd Wednesday of the month).

    Price

    The price of an Ibor future is based on the interest rate of the underlying index. It is defined as (100 - percentRate).

    Strata uses decimal prices for Ibor futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.

    See Also:
    Serialized Form
    • Method Detail

      • getCurrency

        public Currency getCurrency()
        Description copied from interface: Security
        Gets the currency that the security is traded in.
        Specified by:
        getCurrency in interface Security
        Returns:
        the trading currency
      • getUnderlyingIds

        public ImmutableSet<SecurityId> getUnderlyingIds()
        Description copied from interface: Security
        Gets the set of underlying security identifiers.

        The set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.

        Specified by:
        getUnderlyingIds in interface Security
        Returns:
        the underlying security identifiers
      • createProduct

        public IborFuture createProduct​(ReferenceData refData)
        Description copied from interface: Security
        Creates the product associated with this security.

        The product of a security is distinct from the security. The product includes the financial details from this security, but excludes the additional information. The product also includes the products of any underlying securities.

        Specified by:
        createProduct in interface Security
        Parameters:
        refData - the reference data used to find underlying securities
        Returns:
        the product
      • createTrade

        public IborFutureTrade createTrade​(TradeInfo info,
                                           double quantity,
                                           double tradePrice,
                                           ReferenceData refData)
        Description copied from interface: Security
        Creates a trade based on this security.

        This creates a trade of a suitable type for this security.

        Specified by:
        createTrade in interface Security
        Parameters:
        info - the trade information
        quantity - the number of contracts in the trade
        tradePrice - the price agreed when the trade occurred
        refData - the reference data used to find underlying securities
        Returns:
        the trade
      • createPosition

        public IborFuturePosition createPosition​(PositionInfo positionInfo,
                                                 double quantity,
                                                 ReferenceData refData)
        Description copied from interface: Security
        Creates a position based on this security from a net quantity.

        This creates a position of a suitable type for this security.

        Specified by:
        createPosition in interface Security
        Parameters:
        positionInfo - the position information
        quantity - the number of contracts in the position
        refData - the reference data used to find underlying securities
        Returns:
        the position
      • createPosition

        public IborFuturePosition createPosition​(PositionInfo positionInfo,
                                                 double longQuantity,
                                                 double shortQuantity,
                                                 ReferenceData refData)
        Description copied from interface: Security
        Creates a position based on this security from a long and short quantity.

        This creates a position of a suitable type for this security.

        The long quantity and short quantity must be zero or positive, not negative.

        Specified by:
        createPosition in interface Security
        Parameters:
        positionInfo - the position information
        longQuantity - the long quantity in the position
        shortQuantity - the short quantity in the position
        refData - the reference data used to find underlying securities
        Returns:
        the position
      • meta

        public static IborFutureSecurity.Meta meta()
        The meta-bean for IborFutureSecurity.
        Returns:
        the meta-bean, not null
      • builder

        public static IborFutureSecurity.Builder builder()
        Returns a builder used to create an instance of the bean.
        Returns:
        the builder, not null
      • getInfo

        public SecurityInfo getInfo()
        Gets the standard security information.

        This includes the security identifier.

        Specified by:
        getInfo in interface Security
        Returns:
        the value of the property, not null
      • getNotional

        public double getNotional()
        Gets the notional amount.

        This is the full notional of the deposit, such as 1 million dollars. The notional expressed here must be positive. The currency of the notional the same as the currency of the index.

        Returns:
        the value of the property
      • getLastTradeDate

        public LocalDate getLastTradeDate()
        Gets the last date of trading. This date is also the fixing date for the Ibor index. This is typically 2 business days before the IMM date (3rd Wednesday of the month).
        Returns:
        the value of the property, not null
      • getIndex

        public IborIndex getIndex()
        Gets the underlying Ibor index.

        The future is based on this index. It will be a well known market index such as 'USD-LIBOR-3M'.

        Specified by:
        getIndex in interface RateIndexSecurity
        Returns:
        the value of the property, not null
      • getRounding

        public Rounding getRounding()
        Gets the definition of how to round the futures price, defaulted to no rounding.

        The price is represented in decimal form, not percentage form. As such, the decimal places expressed by the rounding refers to this decimal form. For example, the common market price of 99.7125 for a 0.2875% rate is represented as 0.997125 which has 6 decimal places.

        Returns:
        the value of the property, not null
      • toBuilder

        public IborFutureSecurity.Builder toBuilder()
        Returns a builder that allows this bean to be mutated.
        Returns:
        the mutable builder, not null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object