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