public static final class IborFuture.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuture>
IborFuture.| Modifier and Type | Method and Description |
|---|---|
IborFuture.Builder |
accrualFactor(double accrualFactor)
Sets the accrual factor, defaulted from the index if not set.
|
IborFuture |
build() |
IborFuture.Builder |
currency(Currency currency)
Sets the currency that the future is traded in, defaulted from the index if not set.
|
Object |
get(String propertyName) |
IborFuture.Builder |
index(IborIndex index)
Sets the underlying Ibor index.
|
IborFuture.Builder |
lastTradeDate(LocalDate lastTradeDate)
Sets the last date of trading.
|
IborFuture.Builder |
notional(double notional)
Sets the notional amount.
|
IborFuture.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.
|
IborFuture.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
IborFuture.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
IborFuture.Builder |
set(String propertyName,
Object newValue) |
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<IborFuture>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuture>public IborFuture.Builder set(String propertyName, Object newValue)
public IborFuture.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<IborFuture>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<IborFuture>public IborFuture build()
public IborFuture.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic IborFuture.Builder currency(Currency currency)
currency - the new value, not nullpublic IborFuture.Builder notional(double notional)
This is the full notional of the deposit, such as 1 million dollars.
The notional expressed here must be positive.
The currency of the notional is specified by currency.
notional - the new valuepublic IborFuture.Builder accrualFactor(double accrualFactor)
This is the year fraction of the contract, typically 0.25 for a 3 month deposit.
When building, this will default to the number of months in the index divided by 12 if not specified. However, if the index is not month-based, no defaulting will occur.
accrualFactor - the new valuepublic IborFuture.Builder lastTradeDate(LocalDate lastTradeDate)
lastTradeDate - the new value, not nullpublic IborFuture.Builder index(IborIndex index)
The future is based on this index. It will be a well known market index such as 'USD-LIBOR-3M'.
index - the new value, not nullpublic IborFuture.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<IborFuture>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.