public final class ResolvedFixedCouponBondSettlement extends Object implements org.joda.beans.ImmutableBean, Serializable
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.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
double |
getPrice()
Gets the clean price at which the bond was traded.
|
LocalDate |
getSettlementDate()
Gets the settlement date.
|
int |
hashCode() |
static org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> |
meta()
The meta-bean for
ResolvedFixedCouponBondSettlement . |
org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> |
metaBean() |
static ResolvedFixedCouponBondSettlement |
of(LocalDate settlementDate,
double price)
Obtains an instance from the settlement date and price.
|
String |
toString() |
public static ResolvedFixedCouponBondSettlement of(LocalDate settlementDate, double price)
settlementDate
- the settlement dateprice
- the price at which the trade was agreedpublic static org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> meta()
ResolvedFixedCouponBondSettlement
.public org.joda.beans.TypedMetaBean<ResolvedFixedCouponBondSettlement> metaBean()
metaBean
in interface org.joda.beans.Bean
public LocalDate getSettlementDate()
public double getPrice()
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.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.