public static final class ResolvedBondFutureOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOptionTrade>
ResolvedBondFutureOptionTrade.| Modifier and Type | Method and Description |
|---|---|
ResolvedBondFutureOptionTrade |
build() |
Object |
get(String propertyName) |
ResolvedBondFutureOptionTrade.Builder |
info(PortfolioItemInfo info)
Sets the additional information, defaulted to an empty instance.
|
ResolvedBondFutureOptionTrade.Builder |
product(ResolvedBondFutureOption product)
Sets the option that was traded.
|
ResolvedBondFutureOptionTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
ResolvedBondFutureOptionTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedBondFutureOptionTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
ResolvedBondFutureOptionTrade.Builder |
tradedPrice(TradedPrice tradedPrice)
Sets the price that was traded, together with the trade date, optional.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<ResolvedBondFutureOptionTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOptionTrade>public ResolvedBondFutureOptionTrade.Builder set(String propertyName, Object newValue)
public ResolvedBondFutureOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<ResolvedBondFutureOptionTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOptionTrade>public ResolvedBondFutureOptionTrade build()
public ResolvedBondFutureOptionTrade.Builder info(PortfolioItemInfo info)
This allows additional information to be attached.
info - the new value, not nullpublic ResolvedBondFutureOptionTrade.Builder product(ResolvedBondFutureOption product)
The product captures the contracted financial details of the trade.
product - the new value, not nullpublic ResolvedBondFutureOptionTrade.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 ResolvedBondFutureOptionTrade.Builder tradedPrice(TradedPrice tradedPrice)
This is the price agreed when the trade occurred, in decimal form.
Strata uses decimal prices for bond futures options in the trade model, pricers and market data.
This is coherent with the pricing of BondFuture.
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.
tradedPrice - the new valuepublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOptionTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.