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