public final class InflationRateSwapLegConvention extends Object implements SwapLegConvention, org.joda.beans.ImmutableBean, Serializable
This defines the market convention for a floating leg based on the observed value of a Price index such as 'GB-HICP' or 'US-CPI-U'.
| Modifier and Type | Class and Description |
|---|---|
static class |
InflationRateSwapLegConvention.Builder
The bean-builder for
InflationRateSwapLegConvention. |
static class |
InflationRateSwapLegConvention.Meta
The meta-bean for
InflationRateSwapLegConvention. |
| Modifier and Type | Method and Description |
|---|---|
static InflationRateSwapLegConvention.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the leg from the index.
|
PriceIndex |
getIndex()
Gets the Price index.
|
PriceIndexCalculationMethod |
getIndexCalculationMethod()
Gets reference price index calculation method.
|
Period |
getLag()
Gets the positive period between the price index and the accrual date,
typically a number of months.
|
int |
hashCode() |
boolean |
isNotionalExchange()
Gets the flag indicating whether to exchange the notional.
|
static InflationRateSwapLegConvention.Meta |
meta()
The meta-bean for
InflationRateSwapLegConvention. |
InflationRateSwapLegConvention.Meta |
metaBean() |
static InflationRateSwapLegConvention |
of(PriceIndex index,
Period lag,
PriceIndexCalculationMethod priceIndexCalculationMethod,
BusinessDayAdjustment businessDayAdjustment)
Obtains a convention based on the specified index.
|
InflationRateSwapLegConvention.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
RateCalculationSwapLeg |
toLeg(LocalDate startDate,
LocalDate endDate,
PayReceive payReceive,
double notional)
Creates a leg based on this convention.
|
String |
toString() |
public static InflationRateSwapLegConvention of(PriceIndex index, Period lag, PriceIndexCalculationMethod priceIndexCalculationMethod, BusinessDayAdjustment businessDayAdjustment)
The standard market convention for an Inflation rate leg is based on the index. Use the builder for unusual conventions.
index - the index, the market convention values are extracted from the indexlag - the lag between the price index and the accrual date, typically a number of monthspriceIndexCalculationMethod - the price index calculation method, typically interpolated or monthlybusinessDayAdjustment - the business daypublic Currency getCurrency()
public RateCalculationSwapLeg toLeg(LocalDate startDate, LocalDate endDate, PayReceive payReceive, double notional)
This returns a leg based on the specified date. The notional is unsigned, with pay/receive determining the direction of the leg. If the leg is 'Pay', the fixed rate is paid to the counterparty. If the leg is 'Receive', the fixed rate is received from the counterparty.
startDate - the start dateendDate - the end datepayReceive - determines if the leg is to be paid or receivednotional - the business day adjustment to apply to accrual schedule datespublic static InflationRateSwapLegConvention.Meta meta()
InflationRateSwapLegConvention.public static InflationRateSwapLegConvention.Builder builder()
public InflationRateSwapLegConvention.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PriceIndex getIndex()
The floating rate to be paid is based on this price index It will be a well known price index such as 'GB-HICP'.
public Period getLag()
A price index is typically published monthly and has a delay before publication. The lag is subtracted from the accrual start and end date to locate the month of the data to be observed.
For example, the September data may be published in October or November. A 3 month lag will cause an accrual date in December to be based on the observed data for September, which should be available by then.
public PriceIndexCalculationMethod getIndexCalculationMethod()
This specifies how the reference index calculation occurs.
This will default to 'Monthly' if not specified.
public boolean isNotionalExchange()
If 'true', the notional there is both an initial exchange and a final exchange of notional.
This will default to 'false' if not specified.
public InflationRateSwapLegConvention.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.