Class ResolvedFixedCouponBondSettlement
- java.lang.Object
-
- com.opengamma.strata.product.bond.ResolvedFixedCouponBondSettlement
-
- All Implemented Interfaces:
Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class ResolvedFixedCouponBondSettlement extends Object implements org.joda.beans.ImmutableBean, Serializable
The settlement details of a fixed coupon bond trade.When a trade in a fixed coupon bond occurs there is an agreed settlement process. This class captures details of that process for the purpose of pricing.
Once the trade has settled, end of day processing typically aggregates the trades into positions. As a position combines multiple trades at different prices, the information in this class does not apply.
Price
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.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)doublegetPrice()Gets the clean price at which the bond was traded.LocalDategetSettlementDate()Gets the settlement date.inthashCode()static org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement>meta()The meta-bean forResolvedFixedCouponBondSettlement.org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement>metaBean()static ResolvedFixedCouponBondSettlementof(LocalDate settlementDate, double price)Obtains an instance from the settlement date and price.StringtoString()
-
-
-
Method Detail
-
of
public static ResolvedFixedCouponBondSettlement of(LocalDate settlementDate, double price)
Obtains an instance from the settlement date and price.- Parameters:
settlementDate- the settlement dateprice- the price at which the trade was agreed- Returns:
- the settlement information
-
meta
public static org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> meta()
The meta-bean forResolvedFixedCouponBondSettlement.- Returns:
- the meta-bean, not null
-
metaBean
public org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getSettlementDate
public LocalDate getSettlementDate()
Gets the settlement date.- Returns:
- the value of the property, not null
-
getPrice
public double getPrice()
Gets the clean price at which the bond was traded.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.
- Returns:
- the value of the property
-
-