public final class OvernightFuture extends Object implements SecuritizedProduct, Resolvable<ResolvedOvernightFuture>, org.joda.beans.ImmutableBean, Serializable
An Overnight rate future is a financial instrument that is based on the future value of an Overnight index interest rate. The profit or loss of an Overnight rate future is settled daily. This class represents the structure of a single futures contract.
For example, the widely traded "30-Day Federal Funds futures contract" has a notional of 5 million USD, is based on the US Federal Funds Effective Rate 'USD-FED-FUND', expiring the last business day of each month.
(100 - percentRate)
.
Strata uses decimal prices for Overnight rate 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 |
OvernightFuture.Builder
The bean-builder for
OvernightFuture . |
static class |
OvernightFuture.Meta
The meta-bean for
OvernightFuture . |
Modifier and Type | Method and Description |
---|---|
static OvernightFuture.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
double |
getAccrualFactor()
Gets the accrual factor, defaulted from the index if not set.
|
OvernightAccrualMethod |
getAccrualMethod()
Gets the method of accruing Overnight interest.
|
Currency |
getCurrency()
Gets the currency that the future is traded in, defaulted from the index if not set.
|
LocalDate |
getEndDate()
Gets the last date of the rate calculation period.
|
OvernightIndex |
getIndex()
Gets the underlying Overnight index.
|
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.
|
SecurityId |
getSecurityId()
Gets the security identifier.
|
LocalDate |
getStartDate()
Gets the first date of the rate calculation period.
|
int |
hashCode() |
static OvernightFuture.Meta |
meta()
The meta-bean for
OvernightFuture . |
OvernightFuture.Meta |
metaBean() |
ResolvedOvernightFuture |
resolve(ReferenceData refData) |
OvernightFuture.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allCurrencies
allPaymentCurrencies, isCrossCurrency
public ResolvedOvernightFuture resolve(ReferenceData refData)
resolve
in interface Resolvable<ResolvedOvernightFuture>
public static OvernightFuture.Meta meta()
OvernightFuture
.public static OvernightFuture.Builder builder()
public OvernightFuture.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
getSecurityId
in interface SecuritizedProduct
public Currency getCurrency()
getCurrency
in interface SecuritizedProduct
public double getNotional()
This is the full notional of the deposit, such as 5 million dollars.
The notional expressed here must be positive.
The currency of the notional is specified by currency
.
public double getAccrualFactor()
This is the year fraction of the contract, typically 1/12 for a 30-day future. As such, it is often unrelated to the day count of the index. The year fraction must be positive.
public LocalDate getLastTradeDate()
This must be a valid business day on the fixing calendar of index
.
For example, the last trade date is often the last business day of the month.
public LocalDate getStartDate()
This is not necessarily a valid business day on the fixing calendar of index
.
However, it will be adjusted in OvernightRateComputation
if needed.
public LocalDate getEndDate()
This is not necessarily a valid business day on the fixing calendar of index
.
However, it will be adjusted in OvernightRateComputation
if needed.
public OvernightIndex getIndex()
The future is based on this index. It will be a well known market index such as 'USD-FED-FUND'.
public OvernightAccrualMethod getAccrualMethod()
The average rate is calculated based on this method over the period between startDate
and endDate
.
public 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 OvernightFuture.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.