Class ResolvedBillTrade

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

    public final class ResolvedBillTrade
    extends Object
    implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
    A trade in a bill, resolved for pricing.

    This is the resolved form of BillTrade and is the primary input to the pricers. Applications will typically create a ResolvedBillTrade from a BillTrade using BillTrade.resolve(ReferenceData).

    A ResolvedBillTrade 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.

    Price

    Strata uses decimal rates for bills in the trade model, pricers and market data. For example, a yield of 1.32% is represented in Strata by 0.0132.
    See Also:
    Serialized Form
    • Method Detail

      • meta

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

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

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

        public PortfolioItemInfo getInfo()
        Gets the additional information, defaulted to an empty instance.

        This allows additional information to be attached.

        Specified by:
        getInfo in interface ResolvedTrade
        Returns:
        the value of the property, not null
      • getProduct

        public ResolvedBill getProduct()
        Gets the resolved bill product.

        The product captures the contracted financial details of the trade.

        Specified by:
        getProduct in interface ResolvedTrade
        Returns:
        the value of the property, not null
      • getQuantity

        public double getQuantity()
        Gets the quantity, indicating the number of bond contracts in the trade.

        This will be positive if buying and negative if selling.

        Returns:
        the value of the property
      • getSettlement

        public Optional<Payment> getSettlement()
        Gets the settlement details of the bill trade.

        When this class is used to represent a position, this property will be empty.

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

        public ResolvedBillTrade.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