public final class FixedInflationSwapTemplate extends Object implements TradeTemplate, org.joda.beans.ImmutableBean, Serializable
This defines almost all the data necessary to create a Inflation single currency SwapTrade.
The trade date, end date, lag, notional and fixed rate are required to complete the template and create the trade.
As such, it is often possible to get a market price for a trade based on the template.
The market price is typically quoted as a bid/ask on the fixed rate.
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedInflationSwapTemplate.Builder
The bean-builder for
FixedInflationSwapTemplate. |
static class |
FixedInflationSwapTemplate.Meta
The meta-bean for
FixedInflationSwapTemplate. |
| Modifier and Type | Method and Description |
|---|---|
static FixedInflationSwapTemplate.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
SwapTrade |
createTrade(LocalDate tradeDate,
BuySell buySell,
double notional,
double fixedRate,
ReferenceData refData)
Creates a trade based on this template.
|
boolean |
equals(Object obj) |
FixedInflationSwapConvention |
getConvention()
Gets the market convention of the swap.
|
Tenor |
getTenor()
Gets the tenor of the swap.
|
int |
hashCode() |
static FixedInflationSwapTemplate.Meta |
meta()
The meta-bean for
FixedInflationSwapTemplate. |
FixedInflationSwapTemplate.Meta |
metaBean() |
static FixedInflationSwapTemplate |
of(Tenor tenor,
FixedInflationSwapConvention convention)
Creates a template based on the specified tenor and convention.
|
FixedInflationSwapTemplate.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static FixedInflationSwapTemplate of(Tenor tenor, FixedInflationSwapConvention convention)
tenor - the tenor of the swapconvention - the market conventionpublic SwapTrade createTrade(LocalDate tradeDate, BuySell buySell, double notional, double fixedRate, ReferenceData refData)
This returns a trade based on the specified trade date.
The notional is unsigned, with buy/sell determining the direction of the trade. If buying the swap, the floating rate is received from the counterparty, with the fixed rate being paid. If selling the swap, the floating rate is paid to the counterparty, with the fixed rate being received.
tradeDate - the date of the tradebuySell - the buy/sell flagnotional - the notional amount, in the payment currency of the templatefixedRate - the fixed rate, typically derived from the marketrefData - the reference data, used to resolve the trade datesReferenceDataNotFoundException - if an identifier cannot be resolved in the reference datapublic static FixedInflationSwapTemplate.Meta meta()
FixedInflationSwapTemplate.public static FixedInflationSwapTemplate.Builder builder()
public FixedInflationSwapTemplate.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Tenor getTenor()
This is the period from the first accrual date to the last accrual date.
public FixedInflationSwapConvention getConvention()
public FixedInflationSwapTemplate.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.