public final class IborFutureSecurity extends Object implements RateIndexSecurity, org.joda.beans.ImmutableBean, Serializable
An Ibor future is a financial instrument that is based on the future value of an Ibor index interest rate. The profit or loss of an Ibor future is settled daily. An Ibor future is also known as a STIR future (Short Term Interest Rate).
For example, the widely traded "CME Eurodollar futures contract" has a notional of 1 million USD, is based on the USD Libor 3 month rate 'USD-LIBOR-3M', expiring two business days before an IMM date (the 3rd Wednesday of the month).
(100 - percentRate).
Strata uses decimal prices for Ibor futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborFutureSecurity.Builder
The bean-builder for
IborFutureSecurity. |
static class |
IborFutureSecurity.Meta
The meta-bean for
IborFutureSecurity. |
| Modifier and Type | Method and Description |
|---|---|
static IborFutureSecurity.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
IborFuturePosition |
createPosition(PositionInfo positionInfo,
double longQuantity,
double shortQuantity,
ReferenceData refData)
Creates a position based on this security from a long and short quantity.
|
IborFuturePosition |
createPosition(PositionInfo positionInfo,
double quantity,
ReferenceData refData)
Creates a position based on this security from a net quantity.
|
IborFuture |
createProduct(ReferenceData refData)
Creates the product associated with this security.
|
IborFutureTrade |
createTrade(TradeInfo info,
double quantity,
double tradePrice,
ReferenceData refData)
Creates a trade based on this security.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency that the security is traded in.
|
IborIndex |
getIndex()
Gets the underlying Ibor index.
|
SecurityInfo |
getInfo()
Gets the standard security information.
|
LocalDate |
getLastTradeDate()
Gets the last date of trading.
|
double |
getNotional()
Gets the notional amount.
|
Rounding |
getRounding()
Gets the definition of how to round the futures price, defaulted to no rounding.
|
ImmutableSet<SecurityId> |
getUnderlyingIds()
Gets the set of underlying security identifiers.
|
int |
hashCode() |
static IborFutureSecurity.Meta |
meta()
The meta-bean for
IborFutureSecurity. |
IborFutureSecurity.Meta |
metaBean() |
IborFutureSecurity.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
IborFutureSecurity |
withInfo(SecurityInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSecurityIdpublic Currency getCurrency()
SecuritygetCurrency in interface Securitypublic ImmutableSet<SecurityId> getUnderlyingIds()
SecurityThe set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.
getUnderlyingIds in interface Securitypublic IborFutureSecurity withInfo(SecurityInfo info)
SecuritywithInfo in interface RateIndexSecuritywithInfo in interface Securityinfo - the new infopublic IborFuture createProduct(ReferenceData refData)
SecurityThe product of a security is distinct from the security. The product includes the financial details from this security, but excludes the additional information. The product also includes the products of any underlying securities.
createProduct in interface SecurityrefData - the reference data used to find underlying securitiespublic IborFutureTrade createTrade(TradeInfo info, double quantity, double tradePrice, ReferenceData refData)
SecurityThis creates a trade of a suitable type for this security.
createTrade in interface Securityinfo - the trade informationquantity - the number of contracts in the tradetradePrice - the price agreed when the trade occurredrefData - the reference data used to find underlying securitiespublic IborFuturePosition createPosition(PositionInfo positionInfo, double quantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
createPosition in interface SecuritypositionInfo - the position informationquantity - the number of contracts in the positionrefData - the reference data used to find underlying securitiespublic IborFuturePosition createPosition(PositionInfo positionInfo, double longQuantity, double shortQuantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
The long quantity and short quantity must be zero or positive, not negative.
createPosition in interface SecuritypositionInfo - the position informationlongQuantity - the long quantity in the positionshortQuantity - the short quantity in the positionrefData - the reference data used to find underlying securitiespublic static IborFutureSecurity.Meta meta()
IborFutureSecurity.public static IborFutureSecurity.Builder builder()
public IborFutureSecurity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityInfo getInfo()
This includes the security identifier.
public double getNotional()
This is the full notional of the deposit, such as 1 million dollars. The notional expressed here must be positive. The currency of the notional the same as the currency of the index.
public LocalDate getLastTradeDate()
public IborIndex getIndex()
The future is based on this index. It will be a well known market index such as 'USD-LIBOR-3M'.
getIndex in interface RateIndexSecuritypublic Rounding getRounding()
The price is represented in decimal form, not percentage form. As such, the decimal places expressed by the rounding refers to this decimal form. For example, the common market price of 99.7125 for a 0.2875% rate is represented as 0.997125 which has 6 decimal places.
public IborFutureSecurity.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.