public static final class OvernightFutureOptionSecurity.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionSecurity>
OvernightFutureOptionSecurity
.Modifier and Type | Method and Description |
---|---|
OvernightFutureOptionSecurity |
build() |
OvernightFutureOptionSecurity.Builder |
currency(Currency currency)
Sets the currency that the option is traded in.
|
OvernightFutureOptionSecurity.Builder |
expiryDate(LocalDate expiryDate)
Sets the expiry date of the option.
|
OvernightFutureOptionSecurity.Builder |
expiryTime(LocalTime expiryTime)
Sets the expiry time of the option.
|
OvernightFutureOptionSecurity.Builder |
expiryZone(ZoneId expiryZone)
Sets the time-zone of the expiry time.
|
Object |
get(String propertyName) |
OvernightFutureOptionSecurity.Builder |
info(SecurityInfo info)
Sets the standard security information.
|
OvernightFutureOptionSecurity.Builder |
premiumStyle(FutureOptionPremiumStyle premiumStyle)
Sets the style of the option premium.
|
OvernightFutureOptionSecurity.Builder |
putCall(PutCall putCall)
Sets whether the option is put or call.
|
OvernightFutureOptionSecurity.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the option price, defaulted to no rounding.
|
OvernightFutureOptionSecurity.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
OvernightFutureOptionSecurity.Builder |
set(String propertyName,
Object newValue) |
OvernightFutureOptionSecurity.Builder |
strikePrice(double strikePrice)
Sets the strike price, in decimal form.
|
String |
toString() |
OvernightFutureOptionSecurity.Builder |
underlyingFutureId(SecurityId underlyingFutureId)
Sets the identifier of the underlying future.
|
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<OvernightFutureOptionSecurity>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionSecurity>
public OvernightFutureOptionSecurity.Builder set(String propertyName, Object newValue)
public OvernightFutureOptionSecurity.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<OvernightFutureOptionSecurity>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionSecurity>
public OvernightFutureOptionSecurity build()
public OvernightFutureOptionSecurity.Builder info(SecurityInfo info)
This includes the security identifier.
info
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder currency(Currency currency)
currency
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder putCall(PutCall putCall)
A call gives the owner the right, but not obligation, to buy the underlying at an agreed price in the future. A put gives a similar option to sell.
putCall
- the new valuepublic OvernightFutureOptionSecurity.Builder strikePrice(double strikePrice)
This is the price at which the option applies and refers to the price of the underlying future. The rate implied by the strike can take negative values.
Strata uses decimal prices for overnight 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.
strikePrice
- the new valuepublic OvernightFutureOptionSecurity.Builder expiryDate(LocalDate expiryDate)
The expiry date is related to the expiry time and time-zone. The date must not be after last trade date of the underlying future.
expiryDate
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder expiryTime(LocalTime expiryTime)
The expiry time is related to the expiry date and time-zone.
expiryTime
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder expiryZone(ZoneId expiryZone)
The expiry time-zone is related to the expiry date and time.
expiryZone
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder premiumStyle(FutureOptionPremiumStyle premiumStyle)
The two options are daily margining and upfront premium.
premiumStyle
- the new value, not nullpublic OvernightFutureOptionSecurity.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.
rounding
- the new value, not nullpublic OvernightFutureOptionSecurity.Builder underlyingFutureId(SecurityId underlyingFutureId)
underlyingFutureId
- the new value, not nullpublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<OvernightFutureOptionSecurity>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.