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