public final class ResolvedOvernightFutureOptionTrade extends Object implements ResolvedTrade, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of OvernightFutureOptionTrade and is the primary input to the pricers.
Applications will typically create a ResolvedOvernightFutureOptionTrade from a OvernightFutureOptionTrade
using OvernightFutureOptionTrade.resolve(ReferenceData).
A ResolvedOvernightFutureOptionTrade is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
Strata uses decimal prices for overnight 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 |
ResolvedOvernightFutureOptionTrade.Builder
The bean-builder for
ResolvedOvernightFutureOptionTrade. |
static class |
ResolvedOvernightFutureOptionTrade.Meta
The meta-bean for
ResolvedOvernightFutureOptionTrade. |
| Modifier and Type | Method and Description |
|---|---|
static ResolvedOvernightFutureOptionTrade.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
PortfolioItemInfo |
getInfo()
Gets the additional information, defaulted to an empty instance.
|
ResolvedOvernightFutureOption |
getProduct()
Gets the option that was traded.
|
double |
getQuantity()
Gets the quantity that was traded.
|
Optional<TradedPrice> |
getTradedPrice()
Gets the price that was traded, together with the trade date, optional.
|
int |
hashCode() |
static ResolvedOvernightFutureOptionTrade.Meta |
meta()
The meta-bean for
ResolvedOvernightFutureOptionTrade. |
ResolvedOvernightFutureOptionTrade.Meta |
metaBean() |
ResolvedOvernightFutureOptionTrade.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public static ResolvedOvernightFutureOptionTrade.Meta meta()
ResolvedOvernightFutureOptionTrade.public static ResolvedOvernightFutureOptionTrade.Builder builder()
public ResolvedOvernightFutureOptionTrade.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic PortfolioItemInfo getInfo()
This allows additional information to be attached.
getInfo in interface ResolvedTradepublic ResolvedOvernightFutureOption getProduct()
The product captures the contracted financial details of the trade.
getProduct in interface ResolvedTradepublic double getQuantity()
This is the number of contracts that were traded. This will be positive if buying and negative if selling.
public Optional<TradedPrice> getTradedPrice()
This is the price agreed when the trade occurred, in decimal form. Strata uses decimal prices for overnight 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.
This is optional to allow the class to be used to price both trades and positions. When the instance represents a trade, the traded price should be present. When the instance represents a position, the traded price should be empty.
public ResolvedOvernightFutureOptionTrade.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.