Class ResolvedDsf

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

    public final class ResolvedDsf
    extends Object
    implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
    A Deliverable Swap Future, resolved for pricing.

    This is the resolved form of Dsf and is an input to the pricers. Applications will typically create a ResolvedDsf from a Dsf using Dsf.resolve(ReferenceData).

    A ResolvedDsf is bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.


    The price of a DSF is based on the present value (NPV) of the underlying swap on the delivery date. For example, a price of 100.182 represents a present value of $100,182.00, if the notional is $100,000. This price can also be viewed as a percentage present value - (100 + percentPv), or 0.182% in this example.

    Strata uses decimal prices for DSFs in the trade model, pricers and market data. The decimal price is based on the decimal multiplier equivalent to the implied percentage. Thus the market price of 100.182 is represented in Strata by 1.00182.

    See Also:
    Serialized Form
    • Method Detail

      • getCurrency

        public Currency getCurrency()
        Gets the currency of the underlying swap.

        The underlying swap must have a single currency.

        the currency of the swap
      • meta

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

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

        public ResolvedDsf.Meta metaBean()
        Specified by:
        metaBean in interface org.joda.beans.Bean
      • getSecurityId

        public SecurityId getSecurityId()
        Gets the security identifier.

        This identifier uniquely identifies the security within the system.

        the value of the property, not null
      • getNotional

        public double getNotional()
        Gets the notional of the futures.

        This is also called face value or contract value.

        the value of the property
      • getDeliveryDate

        public LocalDate getDeliveryDate()
        Gets the delivery date.

        The underlying swap is delivered on this date.

        the value of the property, not null
      • getLastTradeDate

        public LocalDate getLastTradeDate()
        Gets the last date of trading.

        This date must be before the delivery date of the underlying swap.

        the value of the property, not null
      • getUnderlyingSwap

        public ResolvedSwap getUnderlyingSwap()
        Gets the underlying swap.

        The delivery date of the future is typically the first accrual date of the underlying swap. The swap should be a receiver swap of notional 1.

        the value of the property, not null
      • toBuilder

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

        public int hashCode()
        hashCode in class Object