public final class CdsIndex extends Object implements Product, Resolvable<ResolvedCdsIndex>, org.joda.beans.ImmutableBean, Serializable
A CDS index is a portofolio of single name credit default swaps. The protection buyer periodically pays fixed coupons to the protection seller until the expiry, and in return, the protection buyer receives the bond of a defaulted constituent legal entity for par.
| Modifier and Type | Class and Description |
|---|---|
static class |
CdsIndex.Builder
The bean-builder for
CdsIndex. |
static class |
CdsIndex.Meta
The meta-bean for
CdsIndex. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
static CdsIndex.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
BuySell |
getBuySell()
Gets whether the CDS index is buy or sell.
|
StandardId |
getCdsIndexId()
Gets the CDS index identifier.
|
Currency |
getCurrency()
Gets the currency of the CDS index.
|
DayCount |
getDayCount()
Gets the day count convention.
|
double |
getFixedRate()
Gets the fixed coupon rate.
|
ImmutableList<StandardId> |
getLegalEntityIds()
Gets the legal entity identifiers.
|
double |
getNotional()
Gets the notional amount, must be non-negative.
|
PaymentOnDefault |
getPaymentOnDefault()
Gets the payment on default.
|
PeriodicSchedule |
getPaymentSchedule()
Gets the payment schedule.
|
ProtectionStartOfDay |
getProtectionStart()
Gets the protection start of the day.
|
DaysAdjustment |
getSettlementDateOffset()
Gets the number of days between valuation date and settlement date.
|
DaysAdjustment |
getStepinDateOffset()
Gets the number of days between valuation date and step-in date.
|
int |
hashCode() |
static CdsIndex.Meta |
meta()
The meta-bean for
CdsIndex. |
CdsIndex.Meta |
metaBean() |
static CdsIndex |
of(BuySell buySell,
StandardId cdsIndexId,
List<StandardId> legalEntityIds,
Currency currency,
double notional,
LocalDate startDate,
LocalDate endDate,
Frequency paymentFrequency,
HolidayCalendarId calendar,
double fixedRate)
Creates an instance of a standardized CDS index.
|
ResolvedCdsIndex |
resolve(ReferenceData refData) |
CdsIndex.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallPaymentCurrencies, isCrossCurrencypublic static CdsIndex of(BuySell buySell, StandardId cdsIndexId, List<StandardId> legalEntityIds, Currency currency, double notional, LocalDate startDate, LocalDate endDate, Frequency paymentFrequency, HolidayCalendarId calendar, double fixedRate)
buySell - buy or sellcdsIndexId - the CDS index IDlegalEntityIds - the legal entity IDscurrency - the currencynotional - the notionalstartDate - the start dateendDate - the end datecalendar - the calendarpaymentFrequency - the payment frequencyfixedRate - the fixed coupon ratepublic ImmutableSet<Currency> allCurrencies()
ProductThis returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.
allCurrencies in interface Productpublic ResolvedCdsIndex resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedCdsIndex>public static CdsIndex.Meta meta()
CdsIndex.public static CdsIndex.Builder builder()
public CdsIndex.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic BuySell getBuySell()
A value of 'Buy' implies buying protection, where the fixed coupon is paid and the protection is received in the event of default. A value of 'Sell' implies selling protection, where the fixed coupon is received and the protection is paid in the event of default.
public StandardId getCdsIndexId()
This identifier is used to refer this CDS index product.
public ImmutableList<StandardId> getLegalEntityIds()
These identifiers refer to the reference legal entities of the CDS index.
public Currency getCurrency()
The amounts of the notional are expressed in terms of this currency.
public double getNotional()
The fixed notional amount applicable during the lifetime of the CDS.
The currency of the notional is specified by currency.
public PeriodicSchedule getPaymentSchedule()
This is used to define the payment periods.
public double getFixedRate()
This must be represented in decimal form.
public DayCount getDayCount()
This is used to convert dates to a numerical value.
When building, this will default to 'Act/360'.
public PaymentOnDefault getPaymentOnDefault()
Whether the accrued premium is paid in the event of a default.
When building, this will default to 'AccruedPremium'.
public ProtectionStartOfDay getProtectionStart()
When the protection starts on the start date.
When building, this will default to 'Beginning'.
public DaysAdjustment getStepinDateOffset()
The step-in date is also called protection effective date. It is usually 1 calendar day for standardized CDS index contracts.
When building, this will default to 1 calendar day.
public DaysAdjustment getSettlementDateOffset()
It is usually 3 business days for standardized CDS index contracts.
When building, this will default to 3 business days in the calendar of the payment schedule.
public CdsIndex.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.