public static final class EtdOptionTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>
EtdOptionTrade.| Modifier and Type | Method and Description |
|---|---|
EtdOptionTrade |
build() |
Object |
get(String propertyName) |
EtdOptionTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
EtdOptionTrade.Builder |
price(double price)
Sets the price that was traded, in decimal form.
|
EtdOptionTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
EtdOptionTrade.Builder |
security(EtdOptionSecurity security)
Sets the security that was traded.
|
EtdOptionTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
EtdOptionTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<EtdOptionTrade>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>public EtdOptionTrade.Builder set(String propertyName, Object newValue)
public EtdOptionTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<EtdOptionTrade>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<EtdOptionTrade>public EtdOptionTrade build()
public EtdOptionTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
info - the new value, not nullpublic EtdOptionTrade.Builder security(EtdOptionSecurity security)
security - the new value, not nullpublic EtdOptionTrade.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 EtdOptionTrade.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<EtdOptionTrade>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.