public final class ResolvedCapitalIndexedBondSettlement extends Object implements org.joda.beans.ImmutableBean, Serializable
When a trade in a capital indexed 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) |
BondPaymentPeriod |
getPayment()
Gets the payment of the settlement.
|
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<ResolvedCapitalIndexedBondSettlement> |
meta()
The meta-bean for
ResolvedCapitalIndexedBondSettlement. |
org.joda.beans.TypedMetaBean<ResolvedCapitalIndexedBondSettlement> |
metaBean() |
static ResolvedCapitalIndexedBondSettlement |
of(LocalDate settlementDate,
double price,
BondPaymentPeriod amount)
Obtains an instance from the settlement date, price and amount.
|
String |
toString() |
public static ResolvedCapitalIndexedBondSettlement of(LocalDate settlementDate, double price, BondPaymentPeriod amount)
settlementDate - the settlement dateprice - the price at which the trade was agreedamount - the amount of the settlementpublic static org.joda.beans.TypedMetaBean<ResolvedCapitalIndexedBondSettlement> meta()
ResolvedCapitalIndexedBondSettlement.public org.joda.beans.TypedMetaBean<ResolvedCapitalIndexedBondSettlement> metaBean()
metaBean in interface org.joda.beans.Beanpublic 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.
public BondPaymentPeriod getPayment()
The payment sign should be compatible with the product notional and trade quantity, thus the payment is negative for positive quantity and positive for negative quantity.
This is effectively a fixed amount payment once the inflation rate is fixed.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.