public static final class BondFuture.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFuture>
BondFuture.| Modifier and Type | Method and Description |
|---|---|
BondFuture |
build() |
BondFuture.Builder |
conversionFactors(Double... conversionFactors)
Sets the
conversionFactors property in the builder
from an array of objects. |
BondFuture.Builder |
conversionFactors(List<Double> conversionFactors)
Sets the conversion factor for each bond in the basket.
|
BondFuture.Builder |
deliveryBasket(FixedCouponBond... deliveryBasket)
Sets the
deliveryBasket property in the builder
from an array of objects. |
BondFuture.Builder |
deliveryBasket(List<FixedCouponBond> deliveryBasket)
Sets the basket of deliverable bonds.
|
BondFuture.Builder |
firstDeliveryDate(LocalDate firstDeliveryDate)
Sets the first delivery date.
|
BondFuture.Builder |
firstNoticeDate(LocalDate firstNoticeDate)
Sets the first notice date.
|
Object |
get(String propertyName) |
BondFuture.Builder |
lastDeliveryDate(LocalDate lastDeliveryDate)
Sets the last delivery date.
|
BondFuture.Builder |
lastNoticeDate(LocalDate lastNoticeDate)
Sets the last notice date.
|
BondFuture.Builder |
lastTradeDate(LocalDate lastTradeDate)
Sets the last trading date.
|
BondFuture.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.
|
BondFuture.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
BondFuture.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
BondFuture.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<BondFuture>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFuture>public BondFuture.Builder set(String propertyName, Object newValue)
public BondFuture.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<BondFuture>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFuture>public BondFuture build()
public BondFuture.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic BondFuture.Builder deliveryBasket(List<FixedCouponBond> deliveryBasket)
The underling which will be delivered in the future time is chosen from a basket of underling securities. This must not be empty.
All of the underlying bonds must have the same notional and currency.
deliveryBasket - the new value, not emptypublic BondFuture.Builder deliveryBasket(FixedCouponBond... deliveryBasket)
deliveryBasket property in the builder
from an array of objects.deliveryBasket - the new value, not emptypublic BondFuture.Builder conversionFactors(List<Double> conversionFactors)
The price of each underlying security in the basket is rescaled by the conversion factor.
This must not be empty, and its size must be the same as the size of deliveryBasket.
All of the underlying bonds must have the same notional and currency.
conversionFactors - the new value, not emptypublic BondFuture.Builder conversionFactors(Double... conversionFactors)
conversionFactors property in the builder
from an array of objects.conversionFactors - the new value, not emptypublic BondFuture.Builder lastTradeDate(LocalDate lastTradeDate)
The future security is traded until this date.
lastTradeDate - the new value, not nullpublic BondFuture.Builder firstNoticeDate(LocalDate firstNoticeDate)
The first date on which the delivery of the underlying is authorized.
firstNoticeDate - the new value, not nullpublic BondFuture.Builder lastNoticeDate(LocalDate lastNoticeDate)
The last date on which the delivery of the underlying is authorized.
lastNoticeDate - the new value, not nullpublic BondFuture.Builder firstDeliveryDate(LocalDate firstDeliveryDate)
The first date on which the underlying is delivered.
If not specified, the date will be computed from firstNoticeDate by using
settlementDateOffset in the first element of the delivery basket
when the future is resolved.
firstDeliveryDate - the new valuepublic BondFuture.Builder lastDeliveryDate(LocalDate lastDeliveryDate)
The last date on which the underlying is delivered.
If not specified, the date will be computed from lastNoticeDate by using
settlementDateOffset in the first element of the delivery basket
when the future is resolved.
lastDeliveryDate - the new valuepublic BondFuture.Builder rounding(Rounding rounding)
The price is represented in decimal form, not percentage form. As such, the decimal places expressed by the rounding refers to this decimal form. For example, the common market price of 99.7125 for a 0.2875% rate is represented as 0.997125 which has 6 decimal places.
rounding - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFuture>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.