public static final class IborFutureTrade.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureTrade>
IborFutureTrade
.Modifier and Type | Method and Description |
---|---|
IborFutureTrade |
build() |
Object |
get(String propertyName) |
IborFutureTrade.Builder |
info(TradeInfo info)
Sets the additional trade information, defaulted to an empty instance.
|
IborFutureTrade.Builder |
price(double price)
Sets the price that was traded, in decimal form.
|
IborFutureTrade.Builder |
product(IborFuture product)
Sets the future that was traded.
|
IborFutureTrade.Builder |
quantity(double quantity)
Sets the quantity that was traded.
|
IborFutureTrade.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
IborFutureTrade.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<IborFutureTrade>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureTrade>
public IborFutureTrade.Builder set(String propertyName, Object newValue)
public IborFutureTrade.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<IborFutureTrade>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureTrade>
public IborFutureTrade build()
public IborFutureTrade.Builder info(TradeInfo info)
This allows additional information to be attached to the trade.
The trade date is required when calling IborFutureTrade.resolve(ReferenceData)
.
info
- the new value, not nullpublic IborFutureTrade.Builder product(IborFuture product)
The product captures the contracted financial details of the trade.
product
- the new value, not nullpublic IborFutureTrade.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 IborFutureTrade.Builder price(double price)
This is the price agreed when the trade occurred.
Strata uses decimal prices for Ibor futures in the trade model, pricers and market data. The decimal price is based on the decimal rate equivalent to the percentage. For example, a price of 99.32 implies an interest rate of 0.68% which is represented in Strata by 0.9932.
price
- the new valuepublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFutureTrade>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.