@Deprecated public interface IborFutureConvention extends TradeConvention, Named
This defines the market convention for a future against a particular index.
To manually create a convention, see ImmutableIborFutureConvention.
To register a specific convention, see IborFutureConvention.ini.
| Modifier and Type | Method and Description |
|---|---|
LocalDate |
calculateReferenceDateFromTradeDate(LocalDate tradeDate,
Period minimumPeriod,
int sequenceNumber,
ReferenceData refData)
Deprecated.
Calculates the reference date from the trade date.
|
LocalDate |
calculateReferenceDateFromTradeDate(LocalDate tradeDate,
YearMonth yearMonth,
ReferenceData refData)
Deprecated.
Calculates the reference date from the trade date.
|
IborFutureTrade |
createTrade(LocalDate tradeDate,
SecurityId securityId,
Period minimumPeriod,
int sequenceNumber,
double quantity,
double notional,
double price,
ReferenceData refData)
Deprecated.
Creates a trade based on this convention.
|
IborFutureTrade |
createTrade(LocalDate tradeDate,
SecurityId securityId,
YearMonth yearMonth,
double quantity,
double notional,
double price,
ReferenceData refData)
Deprecated.
Creates a trade based on this convention.
|
static ExtendedEnum<IborFutureConvention> |
extendedEnum()
Deprecated.
Gets the extended enum helper.
|
IborIndex |
getIndex()
Deprecated.
Gets the Ibor index.
|
String |
getName()
Deprecated.
Gets the name that uniquely identifies this convention.
|
static IborFutureConvention |
of(String uniqueName)
Deprecated.
Obtains an instance from the specified unique name.
|
static IborFutureConvention of(String uniqueName)
uniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<IborFutureConvention> extendedEnum()
This helper allows instances of the convention to be looked up. It also provides the complete set of available instances.
IborIndex getIndex()
The floating rate to be paid is based on this index It will be a well known market index such as 'GBP-LIBOR-3M'.
IborFutureTrade createTrade(LocalDate tradeDate, SecurityId securityId, Period minimumPeriod, int sequenceNumber, double quantity, double notional, double price, ReferenceData refData)
This returns a trade based on the specified minimum period and sequence number.
tradeDate - the trade datesecurityId - the identifier of the securityminimumPeriod - minimum period between the value date and the first futuresequenceNumber - the 1-based sequence number of the futuresquantity - the number of contracts traded, positive if buying, negative if sellingnotional - the notional amount of one future contractprice - the trade price of the futurerefData - the reference data, used to resolve the trade datesReferenceDataNotFoundException - if an identifier cannot be resolved in the reference dataIborFutureTrade createTrade(LocalDate tradeDate, SecurityId securityId, YearMonth yearMonth, double quantity, double notional, double price, ReferenceData refData)
This returns a trade based on the specified year-month.
tradeDate - the trade datesecurityId - the identifier of the securityyearMonth - the year-month that the future is defined to be forquantity - the number of contracts traded, positive if buying, negative if sellingnotional - the notional amount of one future contractprice - the trade price of the futurerefData - the reference data, used to resolve the trade datesReferenceDataNotFoundException - if an identifier cannot be resolved in the reference dataLocalDate calculateReferenceDateFromTradeDate(LocalDate tradeDate, Period minimumPeriod, int sequenceNumber, ReferenceData refData)
This determines the date from the specified minimum period and sequence number.
tradeDate - the trade dateminimumPeriod - minimum period between the trade date and the first futuresequenceNumber - the 1-based sequence number of the futuresrefData - the reference data, used to resolve the dateLocalDate calculateReferenceDateFromTradeDate(LocalDate tradeDate, YearMonth yearMonth, ReferenceData refData)
This determines the date from the specified year-month.
tradeDate - the trade dateyearMonth - the year-month that the future is defined to be forrefData - the reference data, used to resolve the dateString getName()
This name is used in serialization and can be parsed using of(String).
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.