public static final class ResolvedBondFutureOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOption>
ResolvedBondFutureOption
.Modifier and Type | Method and Description |
---|---|
ResolvedBondFutureOption |
build() |
ResolvedBondFutureOption.Builder |
expiry(ZonedDateTime expiry)
Sets the expiry of the option.
|
Object |
get(String propertyName) |
ResolvedBondFutureOption.Builder |
premiumStyle(FutureOptionPremiumStyle premiumStyle)
Sets the style of the option premium.
|
ResolvedBondFutureOption.Builder |
putCall(PutCall putCall)
Sets whether the option is put or call.
|
ResolvedBondFutureOption.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the option price, defaulted to no rounding.
|
ResolvedBondFutureOption.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
ResolvedBondFutureOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
ResolvedBondFutureOption.Builder |
set(String propertyName,
Object newValue) |
ResolvedBondFutureOption.Builder |
strikePrice(double strikePrice)
Sets the strike price, represented in decimal form.
|
String |
toString() |
ResolvedBondFutureOption.Builder |
underlyingFuture(ResolvedBondFuture underlyingFuture)
Sets the underlying future.
|
public Object get(String propertyName)
get
in interface org.joda.beans.BeanBuilder<ResolvedBondFutureOption>
get
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOption>
public ResolvedBondFutureOption.Builder set(String propertyName, Object newValue)
public ResolvedBondFutureOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set
in interface org.joda.beans.BeanBuilder<ResolvedBondFutureOption>
set
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOption>
public ResolvedBondFutureOption build()
public ResolvedBondFutureOption.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId
- the new value, not nullpublic ResolvedBondFutureOption.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 ResolvedBondFutureOption.Builder strikePrice(double strikePrice)
This is the price at which the option applies and refers to the price of the underlying future. This must be represented in decimal form.
strikePrice
- the new valuepublic ResolvedBondFutureOption.Builder expiry(ZonedDateTime expiry)
The date must not be after last trade date of the underlying future.
expiry
- the new value, not nullpublic ResolvedBondFutureOption.Builder premiumStyle(FutureOptionPremiumStyle premiumStyle)
The two options are daily margining and upfront premium.
premiumStyle
- the new value, not nullpublic ResolvedBondFutureOption.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 is represented as 0.997125 which has 6 decimal places.
rounding
- the new value, not nullpublic ResolvedBondFutureOption.Builder underlyingFuture(ResolvedBondFuture underlyingFuture)
underlyingFuture
- the new value, not nullpublic String toString()
toString
in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<ResolvedBondFutureOption>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.