public final class CapitalIndexedBond extends Object implements SecuritizedProduct, Resolvable<ResolvedCapitalIndexedBond>, org.joda.beans.ImmutableBean, Serializable
A capital indexed bond is a financial instrument that represents a stream of inflation-adjusted payments. The payments consist two types: periodic coupon payments and nominal payment. All of the payments are adjusted for inflation.
The periodic coupon payment schedule is defined using periodicSchedule.
The payment amount will be computed based on this schedule and RateComputation of InflationRateCalculation.
The nominal payment is defined from the last period of the periodic coupon payment schedule.
The legal entity of this bond is identified by legalEntityId.
The enum, yieldConvention, specifies the yield computation convention.
The accrued interest must be computed with dayCount.
| Modifier and Type | Class and Description |
|---|---|
static class |
CapitalIndexedBond.Builder
The bean-builder for
CapitalIndexedBond. |
static class |
CapitalIndexedBond.Meta
The meta-bean for
CapitalIndexedBond. |
| Modifier and Type | Method and Description |
|---|---|
static CapitalIndexedBond.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
PeriodicSchedule |
getAccrualSchedule()
Gets the accrual schedule.
|
Currency |
getCurrency()
Gets the currency that the bond is traded in.
|
DayCount |
getDayCount()
Gets the day count convention applicable.
|
DaysAdjustment |
getExCouponPeriod()
Gets ex-coupon period.
|
double |
getFirstIndexValue()
Gets the first index value
|
LegalEntityId |
getLegalEntityId()
Gets the legal entity identifier.
|
double |
getNotional()
Gets the notional amount, must be positive.
|
InflationRateCalculation |
getRateCalculation()
Gets the inflation rate calculation.
|
SecurityId |
getSecurityId()
Gets the security identifier.
|
DaysAdjustment |
getSettlementDateOffset()
Gets the number of days between valuation date and settlement date.
|
CapitalIndexedBondYieldConvention |
getYieldConvention()
Gets yield convention.
|
int |
hashCode() |
static CapitalIndexedBond.Meta |
meta()
The meta-bean for
CapitalIndexedBond. |
CapitalIndexedBond.Meta |
metaBean() |
ResolvedCapitalIndexedBond |
resolve(ReferenceData refData) |
CapitalIndexedBond.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallCurrenciesallPaymentCurrencies, isCrossCurrencypublic double getFirstIndexValue()
This is the price index value at the start of the bond.
public ResolvedCapitalIndexedBond resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedCapitalIndexedBond>public static CapitalIndexedBond.Meta meta()
CapitalIndexedBond.public static CapitalIndexedBond.Builder builder()
public CapitalIndexedBond.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
getSecurityId in interface SecuritizedProductpublic Currency getCurrency()
getCurrency in interface SecuritizedProductpublic double getNotional()
The notional expressed here must be positive.
The currency of the notional is specified by currency.
public PeriodicSchedule getAccrualSchedule()
This is used to define the accrual periods. These are used directly or indirectly to determine other dates in the product.
public InflationRateCalculation getRateCalculation()
The reference index is interpolated index or monthly index.
Real coupons are represented by gearing in the calculation.
The price index value at the start of the bond is represented by firstIndexValue in the calculation.
public DayCount getDayCount()
The conversion from dates to a numerical value is made based on this day count. For the inflation-indexed bond, the day count convention is used to compute accrued interest.
Note that the year fraction of a coupon payment is computed based on the unadjusted dates in the schedule.
public CapitalIndexedBondYieldConvention getYieldConvention()
The convention defines how to convert from yield to price and inversely.
public LegalEntityId getLegalEntityId()
This identifier is used for the legal entity that issues the bond.
public DaysAdjustment getSettlementDateOffset()
This is used to compute clean price. The clean price is the relative price to be paid at the standard settlement date in exchange for the bond.
public DaysAdjustment getExCouponPeriod()
Some bonds trade ex-coupons before the coupon payment. The coupon is paid not to the owner of the bond on the payment date but to the owner of the bond on the detachment date. The difference between the two is the ex-coupon period (measured in days).
Because the detachment date is not after the coupon date, the number of days stored in this field should be zero or negative.
public CapitalIndexedBond.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.