public static final class BondFutureOption.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOption>
BondFutureOption.| Modifier and Type | Method and Description |
|---|---|
BondFutureOption |
build() |
BondFutureOption.Builder |
expiryDate(LocalDate expiryDate)
Sets the expiry date of the option.
|
BondFutureOption.Builder |
expiryTime(LocalTime expiryTime)
Sets the expiry time of the option.
|
BondFutureOption.Builder |
expiryZone(ZoneId expiryZone)
Sets the time-zone of the expiry time.
|
Object |
get(String propertyName) |
BondFutureOption.Builder |
premiumStyle(FutureOptionPremiumStyle premiumStyle)
Sets the style of the option premium.
|
BondFutureOption.Builder |
putCall(PutCall putCall)
Sets whether the option is put or call.
|
BondFutureOption.Builder |
rounding(Rounding rounding)
Sets the definition of how to round the option price, defaulted to no rounding.
|
BondFutureOption.Builder |
securityId(SecurityId securityId)
Sets the security identifier.
|
BondFutureOption.Builder |
set(org.joda.beans.MetaProperty<?> property,
Object value) |
BondFutureOption.Builder |
set(String propertyName,
Object newValue) |
BondFutureOption.Builder |
strikePrice(double strikePrice)
Sets the strike price, represented in decimal form.
|
String |
toString() |
BondFutureOption.Builder |
underlyingFuture(BondFuture underlyingFuture)
Sets the underlying future.
|
public Object get(String propertyName)
get in interface org.joda.beans.BeanBuilder<BondFutureOption>get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOption>public BondFutureOption.Builder set(String propertyName, Object newValue)
public BondFutureOption.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
set in interface org.joda.beans.BeanBuilder<BondFutureOption>set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOption>public BondFutureOption build()
public BondFutureOption.Builder securityId(SecurityId securityId)
This identifier uniquely identifies the security within the system.
securityId - the new value, not nullpublic BondFutureOption.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 BondFutureOption.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, (1.0 - decimalRate).
As such, the common market price of 99.3 for a 0.7% rate must be input as 0.993.
The rate implied by the strike can take negative values.
strikePrice - the new valuepublic BondFutureOption.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 BondFutureOption.Builder expiryTime(LocalTime expiryTime)
The expiry time is related to the expiry date and time-zone.
expiryTime - the new value, not nullpublic BondFutureOption.Builder expiryZone(ZoneId expiryZone)
The expiry time-zone is related to the expiry date and time.
expiryZone - the new value, not nullpublic BondFutureOption.Builder premiumStyle(FutureOptionPremiumStyle premiumStyle)
The two options are daily margining and upfront premium.
premiumStyle - the new value, not nullpublic BondFutureOption.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 BondFutureOption.Builder underlyingFuture(BondFuture underlyingFuture)
underlyingFuture - the new value, not nullpublic String toString()
toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<BondFutureOption>Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.