public final class CdsIndexIsdaCreditCurveNode extends Object implements IsdaCreditCurveNode, org.joda.beans.ImmutableBean, Serializable
The trade produced by the node will be a protection payer (BUY) for a positive quantity and a protection receiver (SELL) for a negative quantity.
| Modifier and Type | Class and Description |
|---|---|
static class |
CdsIndexIsdaCreditCurveNode.Builder
The bean-builder for
CdsIndexIsdaCreditCurveNode. |
static class |
CdsIndexIsdaCreditCurveNode.Meta
The meta-bean for
CdsIndexIsdaCreditCurveNode. |
| Modifier and Type | Method and Description |
|---|---|
static CdsIndexIsdaCreditCurveNode.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
LocalDate |
date(LocalDate tradeDate,
ReferenceData refData)
Calculates the date associated with the node.
|
boolean |
equals(Object obj) |
StandardId |
getCdsIndexId()
Gets the CDS index identifier.
|
OptionalDouble |
getFixedRate()
Gets the fixed coupon rate.
|
String |
getLabel()
Gets the label to use for the node.
|
ImmutableList<StandardId> |
getLegalEntityIds()
Gets the legal entity identifiers.
|
ObservableId |
getObservableId()
Gets the identifier of the market data value that provides the quoted value.
|
CdsQuoteConvention |
getQuoteConvention()
Gets the market quote convention.
|
CdsTemplate |
getTemplate()
Gets the template for the single names associated with this node.
|
int |
hashCode() |
static CdsIndexIsdaCreditCurveNode.Meta |
meta()
The meta-bean for
CdsIndexIsdaCreditCurveNode. |
CdsIndexIsdaCreditCurveNode.Meta |
metaBean() |
DatedParameterMetadata |
metadata(LocalDate nodeDate)
Returns metadata for the node from the node date.
|
static CdsIndexIsdaCreditCurveNode |
ofParSpread(CdsTemplate template,
ObservableId observableId,
StandardId cdsIndexId,
List<StandardId> legalEntityIds)
Returns a curve node with par spread convention.
|
static CdsIndexIsdaCreditCurveNode |
ofPointsUpfront(CdsTemplate template,
ObservableId observableId,
StandardId cdsIndexId,
List<StandardId> legalEntityIds,
Double fixedRate)
Returns a curve node with points upfront convention.
|
static CdsIndexIsdaCreditCurveNode |
ofQuotedSpread(CdsTemplate template,
ObservableId observableId,
StandardId cdsIndexId,
List<StandardId> legalEntityIds,
Double fixedRate)
Returns a curve node with quoted spread convention.
|
CdsIndexIsdaCreditCurveNode.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
CdsIndexCalibrationTrade |
trade(double quantity,
MarketData marketData,
ReferenceData refData)
Creates a trade representing the CDS index at the node.
|
public static CdsIndexIsdaCreditCurveNode ofParSpread(CdsTemplate template, ObservableId observableId, StandardId cdsIndexId, List<StandardId> legalEntityIds)
template - the templateobservableId - the observable IDcdsIndexId - the CDS index IDlegalEntityIds - the legal entity IDspublic static CdsIndexIsdaCreditCurveNode ofPointsUpfront(CdsTemplate template, ObservableId observableId, StandardId cdsIndexId, List<StandardId> legalEntityIds, Double fixedRate)
template - the templateobservableId - the observable IDcdsIndexId - the CDS index IDlegalEntityIds - the legal entity IDsfixedRate - the fixed ratepublic static CdsIndexIsdaCreditCurveNode ofQuotedSpread(CdsTemplate template, ObservableId observableId, StandardId cdsIndexId, List<StandardId> legalEntityIds, Double fixedRate)
template - the templateobservableId - the observable IDcdsIndexId - the CDS index IDlegalEntityIds - the legal entity IDsfixedRate - the fixed ratepublic LocalDate date(LocalDate tradeDate, ReferenceData refData)
IsdaCreditCurveNodeEach curve node has an associated date which defines the x-value in the curve. This is typically the adjusted end date of the instrument.
date in interface IsdaCreditCurveNodetradeDate - the trade daterefData - the reference datapublic DatedParameterMetadata metadata(LocalDate nodeDate)
IsdaCreditCurveNode
The node date must be computed by IsdaCreditCurveNode.date(LocalDate, ReferenceData).
metadata in interface IsdaCreditCurveNodenodeDate - the node date used when calibrating the curvepublic CdsIndexCalibrationTrade trade(double quantity, MarketData marketData, ReferenceData refData)
This uses the observed market data to build the CDS index trade that the node represents. The resulting trade is not resolved. The notional of the trade is taken from the 'quantity' variable. The quantity is signed and will affect whether the trade is Buy or Sell. The valuation date is defined by the market data.
quantity - the quantity or notional of the trademarketData - the market data required to build a trade for the instrument, including the valuation daterefData - the reference data, used to resolve the trade datespublic static CdsIndexIsdaCreditCurveNode.Meta meta()
CdsIndexIsdaCreditCurveNode.public static CdsIndexIsdaCreditCurveNode.Builder builder()
public CdsIndexIsdaCreditCurveNode.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic CdsTemplate getTemplate()
public String getLabel()
When building, this will default based on template if not specified.
getLabel in interface IsdaCreditCurveNodepublic ObservableId getObservableId()
getObservableId in interface IsdaCreditCurveNodepublic 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 CdsQuoteConvention getQuoteConvention()
The CDS index is quoted in par spread, points upfront or quoted spread.
See CdsQuoteConvention for detail.
public OptionalDouble getFixedRate()
This must be represented in decimal form.
public CdsIndexIsdaCreditCurveNode.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.