Class ImmutableIborFutureConvention
- java.lang.Object
-
- com.opengamma.strata.product.index.type.ImmutableIborFutureConvention
-
- All Implemented Interfaces:
Named,IborFutureConvention,TradeConvention,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
@Deprecated public final class ImmutableIborFutureConvention extends Object implements IborFutureConvention, org.joda.beans.ImmutableBean, Serializable
Deprecated.A market convention for Ibor Future trades.This defines the market convention for a future against a particular index. In most cases, the index contains sufficient information to fully define the convention.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableIborFutureConvention.BuilderDeprecated.The bean-builder forImmutableIborFutureConvention.static classImmutableIborFutureConvention.MetaDeprecated.The meta-bean forImmutableIborFutureConvention.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ImmutableIborFutureConvention.Builderbuilder()Deprecated.Returns a builder used to create an instance of the bean.LocalDatecalculateReferenceDateFromTradeDate(LocalDate tradeDate, Period minimumPeriod, int sequenceNumber, ReferenceData refData)Deprecated.Calculates the reference date from the trade date.LocalDatecalculateReferenceDateFromTradeDate(LocalDate tradeDate, YearMonth yearMonth, ReferenceData refData)Deprecated.Calculates the reference date from the trade date.IborFutureTradecreateTrade(LocalDate tradeDate, SecurityId securityId, Period minimumPeriod, int sequenceNumber, double quantity, double notional, double price, ReferenceData refData)Deprecated.Creates a trade based on this convention.IborFutureTradecreateTrade(LocalDate tradeDate, SecurityId securityId, YearMonth yearMonth, double quantity, double notional, double price, ReferenceData refData)Deprecated.Creates a trade based on this convention.booleanequals(Object obj)Deprecated.BusinessDayAdjustmentgetBusinessDayAdjustment()Deprecated.Gets the business day adjustment to apply to the reference date.DateSequencegetDateSequence()Deprecated.Gets the sequence of dates that the future is based on.IborIndexgetIndex()Deprecated.Gets the Ibor index.StringgetName()Deprecated.Gets the convention name, such as 'USD-LIBOR-3M-Quarterly-IMM'.inthashCode()Deprecated.static ImmutableIborFutureConvention.Metameta()Deprecated.The meta-bean forImmutableIborFutureConvention.ImmutableIborFutureConvention.MetametaBean()Deprecated.static ImmutableIborFutureConventionof(IborIndex index, DateSequence dateSequence)Deprecated.Creates a convention based on the specified index and the sequence of dates.ImmutableIborFutureConvention.BuildertoBuilder()Deprecated.Returns a builder that allows this bean to be mutated.StringtoString()Deprecated.
-
-
-
Method Detail
-
of
public static ImmutableIborFutureConvention of(IborIndex index, DateSequence dateSequence)
Deprecated.Creates a convention based on the specified index and the sequence of dates.The standard market convention is based on the index. The business day adjustment is set to be 'Following' using the effective date calendar from the index. The convention name will default to the name of the index suffixed by the name of the date sequence.
- Parameters:
index- the index, the calendar for the adjustment is extracted from the indexdateSequence- the sequence of dates- Returns:
- the convention
-
createTrade
public IborFutureTrade createTrade(LocalDate tradeDate, SecurityId securityId, Period minimumPeriod, int sequenceNumber, double quantity, double notional, double price, ReferenceData refData)
Deprecated.Description copied from interface:IborFutureConventionCreates a trade based on this convention.This returns a trade based on the specified minimum period and sequence number.
- Specified by:
createTradein interfaceIborFutureConvention- Parameters:
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 dates- Returns:
- the trade
-
createTrade
public IborFutureTrade createTrade(LocalDate tradeDate, SecurityId securityId, YearMonth yearMonth, double quantity, double notional, double price, ReferenceData refData)
Deprecated.Description copied from interface:IborFutureConventionCreates a trade based on this convention.This returns a trade based on the specified year-month.
- Specified by:
createTradein interfaceIborFutureConvention- Parameters:
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 dates- Returns:
- the trade
-
calculateReferenceDateFromTradeDate
public LocalDate calculateReferenceDateFromTradeDate(LocalDate tradeDate, Period minimumPeriod, int sequenceNumber, ReferenceData refData)
Deprecated.Description copied from interface:IborFutureConventionCalculates the reference date from the trade date.This determines the date from the specified minimum period and sequence number.
- Specified by:
calculateReferenceDateFromTradeDatein interfaceIborFutureConvention- Parameters:
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 date- Returns:
- the future reference date
-
calculateReferenceDateFromTradeDate
public LocalDate calculateReferenceDateFromTradeDate(LocalDate tradeDate, YearMonth yearMonth, ReferenceData refData)
Deprecated.Description copied from interface:IborFutureConventionCalculates the reference date from the trade date.This determines the date from the specified year-month.
- Specified by:
calculateReferenceDateFromTradeDatein interfaceIborFutureConvention- Parameters:
tradeDate- the trade dateyearMonth- the year-month that the future is defined to be forrefData- the reference data, used to resolve the date- Returns:
- the future reference date
-
meta
public static ImmutableIborFutureConvention.Meta meta()
Deprecated.The meta-bean forImmutableIborFutureConvention.- Returns:
- the meta-bean, not null
-
builder
public static ImmutableIborFutureConvention.Builder builder()
Deprecated.Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public ImmutableIborFutureConvention.Meta metaBean()
Deprecated.- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getIndex
public IborIndex getIndex()
Deprecated.Gets the Ibor index.The floating rate to be paid is based on this index It will be a well known market index such as 'GBP-LIBOR-3M'.
- Specified by:
getIndexin interfaceIborFutureConvention- Returns:
- the value of the property, not null
-
getName
public String getName()
Deprecated.Gets the convention name, such as 'USD-LIBOR-3M-Quarterly-IMM'.This will default to the name of the index suffixed by the name of the date sequence if not specified.
- Specified by:
getNamein interfaceIborFutureConvention- Specified by:
getNamein interfaceNamed- Returns:
- the value of the property, not null
-
getDateSequence
public DateSequence getDateSequence()
Deprecated.Gets the sequence of dates that the future is based on.This is used to calculate the reference date of the future that is the start date of the underlying synthetic deposit.
- Returns:
- the value of the property, not null
-
getBusinessDayAdjustment
public BusinessDayAdjustment getBusinessDayAdjustment()
Deprecated.Gets the business day adjustment to apply to the reference date.The reference date, which is often the third Wednesday of the month, will be adjusted as defined here.
- Returns:
- the value of the property, not null
-
toBuilder
public ImmutableIborFutureConvention.Builder toBuilder()
Deprecated.Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-