public static final class OvernightFuture.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFuture>
OvernightFuture.| Modifier and Type | Method and Description |
|---|---|
OvernightFuture.Builder |
accrualFactor(double accrualFactor)
Sets the accrual factor, defaulted from the index if not set.
|
OvernightFuture.Builder |
accrualMethod(OvernightAccrualMethod accrualMethod)
Sets the method of accruing Overnight interest.
|
OvernightFuture |
build() |
OvernightFuture.Builder |
currency(Currency currency)
Sets the currency that the future is traded in, defaulted from the index if not set.
|
OvernightFuture.Builder |
endDate(LocalDate endDate)
Sets the last date of the rate calculation period.
|
Object |
get(String propertyName) |
OvernightFuture.Builder |
index(OvernightIndex index)
Sets the underlying Overnight index.
|
OvernightFuture.Builder |
lastTradeDate(LocalDate lastTradeDate)
Sets the last date of trading.
|
OvernightFuture.Builder |
notional(double notional)
Sets the notional amount.
|
OvernightFuture.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the futures price, defaulted to no rounding.
|
OvernightFuture.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
OvernightFuture.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightFuture.Builder |
set(String propertyName,
Object newValue) |
OvernightFuture.Builder |
startDate(LocalDate startDate)
Sets the first date of the rate calculation period.
|
String |
toString() |
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<OvernightFuture>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFuture>public OvernightFuture.Builder set(String propertyName, Object newValue)
public OvernightFuture.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<OvernightFuture>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFuture>public OvernightFuture build()
public OvernightFuture.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic OvernightFuture.Builder currency(Currency currency)
currency - the new value, not nullpublic OvernightFuture.Builder notional(double notional)
This is the full notional of the deposit, such as 5 million dollars.
The notional expressed here must be positive.
The currency of the notional is specified by currency.
notional - the new valuepublic OvernightFuture.Builder accrualFactor(double accrualFactor)
This is the year fraction of the contract, typically 1/12 for a 30-day future. As such, it is often unrelated to the day count of the index. The year fraction must be positive.
accrualFactor - the new valuepublic OvernightFuture.Builder lastTradeDate(LocalDate lastTradeDate)
This must be a valid business day on the fixing calendar of index.
For example, the last trade date is often the last business day of the month.
lastTradeDate - the new value, not nullpublic OvernightFuture.Builder startDate(LocalDate startDate)
This is not necessarily a valid business day on the fixing calendar of index.
However, it will be adjusted in OvernightRateComputation if needed.
startDate - the new value, not nullpublic OvernightFuture.Builder endDate(LocalDate endDate)
This is not necessarily a valid business day on the fixing calendar of index.
However, it will be adjusted in OvernightRateComputation if needed.
endDate - the new value, not nullpublic OvernightFuture.Builder index(OvernightIndex index)
The future is based on this index. It will be a well known market index such as 'USD-FED-FUND'.
index - the new value, not nullpublic OvernightFuture.Builder accrualMethod(OvernightAccrualMethod accrualMethod)
The average rate is calculated based on this method over the period between startDate and endDate.
accrualMethod - the new value, not nullpublic OvernightFuture.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<OvernightFuture>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.