public final class IborFutureOption extends Object implements SecuritizedProduct, Resolvable<ResolvedIborFutureOption>, org.joda.beans.ImmutableBean, Serializable
An Ibor future option is a financial instrument that provides an option based on the future value of an Ibor index interest rate. The option is American, exercised at any point up to the exercise time. It handles options with either daily margining or upfront premium.
An Ibor future option is also known as a STIR future option (Short Term Interest Rate). This class represents the structure of a single option contract.
Strata uses decimal prices for Ibor future options in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, an option price of 0.2 is related to a futures price of 99.32 that implies an interest rate of 0.68%. Strata represents the price of the future as 0.9932 and thus represents the price of the option as 0.002.
| Modifier and Type | Class and Description |
|---|---|
static class |
IborFutureOption.Builder
The bean-builder for
IborFutureOption. |
static class |
IborFutureOption.Meta
The meta-bean for
IborFutureOption. |
| Modifier and Type | Method and Description |
|---|---|
static IborFutureOption.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency that the security is traded in.
|
ZonedDateTime |
getExpiry()
Gets the expiry date-time.
|
LocalDate |
getExpiryDate()
Gets the expiry date of the option.
|
LocalTime |
getExpiryTime()
Gets the expiry time of the option.
|
ZoneId |
getExpiryZone()
Gets the time-zone of the expiry time.
|
IborIndex |
getIndex()
Gets the Ibor index that the option is based on.
|
FutureOptionPremiumStyle |
getPremiumStyle()
Gets the style of the option premium.
|
PutCall |
getPutCall()
Gets whether the option is put or call.
|
Rounding |
getRounding()
Gets the definition of how to round the option price, defaulted to no rounding.
|
SecurityId |
getSecurityId()
Gets the security identifier.
|
double |
getStrikePrice()
Gets the strike price, in decimal form.
|
IborFuture |
getUnderlyingFuture()
Gets the underlying future.
|
int |
hashCode() |
static IborFutureOption.Meta |
meta()
The meta-bean for
IborFutureOption. |
IborFutureOption.Meta |
metaBean() |
ResolvedIborFutureOption |
resolve(ReferenceData refData) |
IborFutureOption.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallCurrenciesallPaymentCurrencies, isCrossCurrencypublic Currency getCurrency()
SecuritizedProductgetCurrency in interface SecuritizedProductpublic ZonedDateTime getExpiry()
The option expires at this date and time.
The result is returned by combining the expiry date, time and time-zone.
public IborIndex getIndex()
public ResolvedIborFutureOption resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedIborFutureOption>public static IborFutureOption.Meta meta()
IborFutureOption.public static IborFutureOption.Builder builder()
public IborFutureOption.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityId getSecurityId()
This identifier uniquely identifies the security within the system.
getSecurityId in interface SecuritizedProductpublic PutCall getPutCall()
A call gives the owner the right, but not obligation, to buy the underlying at an agreed price in the future. A put gives a similar option to sell.
public double getStrikePrice()
This is the price at which the option applies and refers to the price of the underlying future. The rate implied by the strike can take negative values.
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.
public LocalDate getExpiryDate()
The expiry date is related to the expiry time and time-zone. The date must not be after last trade date of the underlying future.
public LocalTime getExpiryTime()
The expiry time is related to the expiry date and time-zone.
public ZoneId getExpiryZone()
The expiry time-zone is related to the expiry date and time.
public FutureOptionPremiumStyle getPremiumStyle()
The two options are daily margining and upfront premium.
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.
public IborFuture getUnderlyingFuture()
public IborFutureOption.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.