public static final class BondFutureSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureSecurity>
BondFutureSecurity.| Modifier and Type | Method and Description |
|---|---|
BondFutureSecurity |
build() |
BondFutureSecurity.Builder |
conversionFactors(Double... conversionFactors)
Sets the
conversionFactors property in the builder
from an array of objects. |
BondFutureSecurity.Builder |
conversionFactors(List<Double> conversionFactors)
Sets the conversion factor for each bond in the basket.
|
BondFutureSecurity.Builder |
currency(Currency currency)
Sets the currency that the future is traded in.
|
BondFutureSecurity.Builder |
deliveryBasketIds(List<SecurityId> deliveryBasketIds)
Sets the basket of deliverable bonds.
|
BondFutureSecurity.Builder |
deliveryBasketIds(SecurityId... deliveryBasketIds)
Sets the
deliveryBasketIds property in the builder
from an array of objects. |
BondFutureSecurity.Builder |
firstDeliveryDate(LocalDate firstDeliveryDate)
Sets the first delivery date.
|
BondFutureSecurity.Builder |
firstNoticeDate(LocalDate firstNoticeDate)
Sets the first notice date.
|
Object |
get(String propertyName) |
BondFutureSecurity.Builder |
info(SecurityInfo info)
Sets the standard security information.
|
BondFutureSecurity.Builder |
lastDeliveryDate(LocalDate lastDeliveryDate)
Sets the last delivery date.
|
BondFutureSecurity.Builder |
lastNoticeDate(LocalDate lastNoticeDate)
Sets the last notice date.
|
BondFutureSecurity.Builder |
lastTradeDate(LocalDate lastTradeDate)
Sets the last trading date.
|
BondFutureSecurity.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.
|
BondFutureSecurity.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
BondFutureSecurity.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<BondFutureSecurity>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureSecurity>public BondFutureSecurity.Builder set(String propertyName, Object newValue)
public BondFutureSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<BondFutureSecurity>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureSecurity>public BondFutureSecurity build()
public BondFutureSecurity.Builder info(SecurityInfo info)
This includes the security identifier.
info - the new value, not nullpublic BondFutureSecurity.Builder currency(Currency currency)
currency - the new value, not nullpublic BondFutureSecurity.Builder deliveryBasketIds(List<SecurityId> deliveryBasketIds)
The underlying 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.
deliveryBasketIds - the new value, not emptypublic BondFutureSecurity.Builder deliveryBasketIds(SecurityId... deliveryBasketIds)
deliveryBasketIds property in the builder
from an array of objects.deliveryBasketIds - the new value, not emptypublic BondFutureSecurity.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 deliveryBasketIds.
All of the underlying bonds must have the same notional and currency.
conversionFactors - the new value, not emptypublic BondFutureSecurity.Builder conversionFactors(Double... conversionFactors)
conversionFactors property in the builder
from an array of objects.conversionFactors - the new value, not emptypublic BondFutureSecurity.Builder lastTradeDate(LocalDate lastTradeDate)
The future security is traded until this date.
lastTradeDate - the new value, not nullpublic BondFutureSecurity.Builder firstNoticeDate(LocalDate firstNoticeDate)
The first date on which the delivery of the underlying is authorized.
firstNoticeDate - the new value, not nullpublic BondFutureSecurity.Builder lastNoticeDate(LocalDate lastNoticeDate)
The last date on which the delivery of the underlying is authorized.
lastNoticeDate - the new value, not nullpublic BondFutureSecurity.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 BondFutureSecurity.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 BondFutureSecurity.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<BondFutureSecurity>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.