public static final class OvernightFutureOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionTrade>
OvernightFutureOptionTrade.| Modifier and Type | Method and Description |
|---|---|
OvernightFutureOptionTrade |
build() |
Object |
get(String propertyName) |
OvernightFutureOptionTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
OvernightFutureOptionTrade.Builder |
price(double price)
Sets the price that was traded, in decimal form.
|
OvernightFutureOptionTrade.Builder |
product(OvernightFutureOption product)
Sets the option that was traded.
|
OvernightFutureOptionTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
OvernightFutureOptionTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightFutureOptionTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<OvernightFutureOptionTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionTrade>public OvernightFutureOptionTrade.Builder set(String propertyName, Object newValue)
public OvernightFutureOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<OvernightFutureOptionTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionTrade>public OvernightFutureOptionTrade build()
public OvernightFutureOptionTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
The trade date is required when calling OvernightFutureOptionTrade.resolve(ReferenceData).
info - the new value, not nullpublic OvernightFutureOptionTrade.Builder product(OvernightFutureOption product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic OvernightFutureOptionTrade.Builder quantity(double quantity)
This is the number of contracts that were traded. This will be positive if buying and negative if selling.
quantity - the new valuepublic OvernightFutureOptionTrade.Builder price(double price)
This is the price agreed when the trade occurred.
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.
price - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.