public final class IborFixingDepositTemplate extends Object implements TradeTemplate, org.joda.beans.ImmutableBean, Serializable
This defines almost all the data necessary to create a IborFixingDepositTrade.
The trade date, 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 convention is defined by four dates.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborFixingDepositTemplate.Builder
The bean-builder for
IborFixingDepositTemplate. |
static class |
IborFixingDepositTemplate.Meta
The meta-bean for
IborFixingDepositTemplate. |
| Modifier and Type | Method and Description |
|---|---|
static IborFixingDepositTemplate.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
IborFixingDepositTrade |
createTrade(LocalDate tradeDate,
BuySell buySell,
double notional,
double fixedRate,
ReferenceData refData)
Creates a trade based on this template.
|
boolean |
equals(Object obj) |
IborFixingDepositConvention |
getConvention()
Gets the underlying Ibor fixing deposit convention.
|
Period |
getDepositPeriod()
Gets the period between the start date and the end date.
|
int |
hashCode() |
static IborFixingDepositTemplate.Meta |
meta()
The meta-bean for
IborFixingDepositTemplate. |
IborFixingDepositTemplate.Meta |
metaBean() |
static IborFixingDepositTemplate |
of(IborIndex index)
Obtains a template based on the specified index.
|
static IborFixingDepositTemplate |
of(Period depositPeriod,
IborFixingDepositConvention convention)
Obtains a template based on the specified periods and convention.
|
static IborFixingDepositTemplate |
of(Period depositPeriod,
IborIndex index)
Obtains a template based on the specified period and index.
|
IborFixingDepositTemplate.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static IborFixingDepositTemplate of(IborIndex index)
The period from the start date to the end date will be the tenor of the index. The convention will be created based on the index.
index - the index that defines the market conventionpublic static IborFixingDepositTemplate of(Period depositPeriod, IborIndex index)
The period from the start date to the end is specified. The convention will be created based on the index.
depositPeriod - the period between the start date and the end dateindex - the index that defines the market conventionpublic static IborFixingDepositTemplate of(Period depositPeriod, IborFixingDepositConvention convention)
depositPeriod - the period between the start date and the end dateconvention - the market conventionpublic IborFixingDepositTrade createTrade(LocalDate tradeDate, BuySell buySell, double notional, double fixedRate, ReferenceData refData)
This returns a trade based on the specified date. The notional is unsigned, with buy/sell determining the direction of the trade. If buying the Ibor fixing deposit, the floating rate is paid from the counterparty, with the fixed rate being received. If selling the Ibor fixing deposit, the floating received is paid to the counterparty, with the fixed rate being paid.
tradeDate - the date of the tradebuySell - the buy/sell flag, see IborFixingDeposit.getBuySell()notional - 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 IborFixingDepositTemplate.Meta meta()
IborFixingDepositTemplate.public static IborFixingDepositTemplate.Builder builder()
public IborFixingDepositTemplate.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Period getDepositPeriod()
The difference between the start date and the end date typically matches the tenor of the index, however this is not validated.
public IborFixingDepositConvention getConvention()
This specifies the standard convention of the Ibor fixing deposit to be created.
public IborFixingDepositTemplate.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.