public final class CapitalIndexedBondSecurity extends Object implements LegalEntitySecurity, org.joda.beans.ImmutableBean, Serializable
A capital indexed bond is a financial instrument that represents a stream of inflation-adjusted payments.
| Modifier and Type | Class and Description |
|---|---|
static class |
CapitalIndexedBondSecurity.Builder
The bean-builder for
CapitalIndexedBondSecurity. |
static class |
CapitalIndexedBondSecurity.Meta
The meta-bean for
CapitalIndexedBondSecurity. |
| Modifier and Type | Method and Description |
|---|---|
static CapitalIndexedBondSecurity.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
CapitalIndexedBondPosition |
createPosition(PositionInfo positionInfo,
double longQuantity,
double shortQuantity,
ReferenceData refData)
Creates a position based on this security from a long and short quantity.
|
CapitalIndexedBondPosition |
createPosition(PositionInfo positionInfo,
double quantity,
ReferenceData refData)
Creates a position based on this security from a net quantity.
|
CapitalIndexedBond |
createProduct(ReferenceData refData)
Creates the product associated with this security.
|
CapitalIndexedBondTrade |
createTrade(TradeInfo info,
double quantity,
double tradePrice,
ReferenceData refData)
Creates a trade based on this security.
|
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
|
SecurityInfo |
getInfo()
Gets the standard security information.
|
LegalEntityId |
getLegalEntityId()
Gets the legal entity identifier.
|
double |
getNotional()
Gets the notional amount, must be positive.
|
InflationRateCalculation |
getRateCalculation()
Gets the inflation rate calculation.
|
DaysAdjustment |
getSettlementDateOffset()
Gets the number of days between valuation date and settlement date.
|
ImmutableSet<SecurityId> |
getUnderlyingIds()
Gets the set of underlying security identifiers.
|
CapitalIndexedBondYieldConvention |
getYieldConvention()
Gets yield convention.
|
int |
hashCode() |
static CapitalIndexedBondSecurity.Meta |
meta()
The meta-bean for
CapitalIndexedBondSecurity. |
CapitalIndexedBondSecurity.Meta |
metaBean() |
CapitalIndexedBondSecurity.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
CapitalIndexedBondSecurity |
withInfo(SecurityInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSecurityIdpublic double getFirstIndexValue()
This is the price index value at the start of the bond.
public ImmutableSet<SecurityId> getUnderlyingIds()
SecurityThe set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.
getUnderlyingIds in interface Securitypublic CapitalIndexedBondSecurity withInfo(SecurityInfo info)
SecuritywithInfo in interface LegalEntitySecuritywithInfo in interface Securityinfo - the new infopublic CapitalIndexedBond createProduct(ReferenceData refData)
SecurityThe product of a security is distinct from the security. The product includes the financial details from this security, but excludes the additional information. The product also includes the products of any underlying securities.
createProduct in interface SecurityrefData - the reference data used to find underlying securitiespublic CapitalIndexedBondTrade createTrade(TradeInfo info, double quantity, double tradePrice, ReferenceData refData)
SecurityThis creates a trade of a suitable type for this security.
createTrade in interface Securityinfo - the trade informationquantity - the number of contracts in the tradetradePrice - the price agreed when the trade occurredrefData - the reference data used to find underlying securitiespublic CapitalIndexedBondPosition createPosition(PositionInfo positionInfo, double quantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
createPosition in interface SecuritypositionInfo - the position informationquantity - the number of contracts in the positionrefData - the reference data used to find underlying securitiespublic CapitalIndexedBondPosition createPosition(PositionInfo positionInfo, double longQuantity, double shortQuantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
The long quantity and short quantity must be zero or positive, not negative.
createPosition in interface SecuritypositionInfo - the position informationlongQuantity - the long quantity in the positionshortQuantity - the short quantity in the positionrefData - the reference data used to find underlying securitiespublic static CapitalIndexedBondSecurity.Meta meta()
CapitalIndexedBondSecurity.public static CapitalIndexedBondSecurity.Builder builder()
public CapitalIndexedBondSecurity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityInfo getInfo()
This includes the security identifier.
public Currency getCurrency()
getCurrency in interface Securitypublic 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.
getLegalEntityId in interface LegalEntitySecuritypublic 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 CapitalIndexedBondSecurity.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.