public final class DepositIsdaCreditCurveNode extends Object implements IsdaCreditCurveNode, org.joda.beans.ImmutableBean, Serializable
A term deposit is a financial instrument that provides a fixed rate of interest on an amount for a specific term.
observableId is used to access the market data value of this fixed rate.
| Modifier and Type | Class and Description |
|---|---|
static class |
DepositIsdaCreditCurveNode.Builder
The bean-builder for
DepositIsdaCreditCurveNode. |
static class |
DepositIsdaCreditCurveNode.Meta
The meta-bean for
DepositIsdaCreditCurveNode. |
| Modifier and Type | Method and Description |
|---|---|
static DepositIsdaCreditCurveNode.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) |
BusinessDayAdjustment |
getBusinessDayAdjustment()
Gets the business day adjustment to apply to the start and end date.
|
DayCount |
getDayCount()
Gets the day count convention.
|
String |
getLabel()
Gets the label to use for the node, defaulted.
|
ObservableId |
getObservableId()
Gets the identifier of the market data value that provides the rate.
|
DaysAdjustment |
getSpotDateOffset()
Gets the offset of the start date from the trade date.
|
Tenor |
getTenor()
Gets the period between the start date and the end date.
|
int |
hashCode() |
static DepositIsdaCreditCurveNode.Meta |
meta()
The meta-bean for
DepositIsdaCreditCurveNode. |
DepositIsdaCreditCurveNode.Meta |
metaBean() |
TenorDateParameterMetadata |
metadata(LocalDate nodeDate)
Returns metadata for the node from the node date.
|
static DepositIsdaCreditCurveNode |
of(ObservableId observableId,
DaysAdjustment spotDateOffset,
BusinessDayAdjustment businessDayAdjustment,
Tenor tenor,
DayCount dayCount)
Returns a curve node for a term deposit.
|
DepositIsdaCreditCurveNode.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static DepositIsdaCreditCurveNode of(ObservableId observableId, DaysAdjustment spotDateOffset, BusinessDayAdjustment businessDayAdjustment, Tenor tenor, DayCount dayCount)
The label will be created using tenor.
observableId - the observable IDspotDateOffset - the spot date offsetbusinessDayAdjustment - the business day adjustmenttenor - the tenordayCount - the day countpublic 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 TenorDateParameterMetadata 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 static DepositIsdaCreditCurveNode.Meta meta()
DepositIsdaCreditCurveNode.public static DepositIsdaCreditCurveNode.Builder builder()
public DepositIsdaCreditCurveNode.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic String getLabel()
When building, this will default based on the tenor if not specified.
getLabel in interface IsdaCreditCurveNodepublic ObservableId getObservableId()
getObservableId in interface IsdaCreditCurveNodepublic Tenor getTenor()
public DaysAdjustment getSpotDateOffset()
The offset is applied to the trade date and is typically plus 2 business days.
public BusinessDayAdjustment getBusinessDayAdjustment()
The start and end date will be adjusted as defined here.
public DayCount getDayCount()
This defines the term year fraction.
public DepositIsdaCreditCurveNode.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.