public final class BondFutureOptionSecurity extends Object implements Security, org.joda.beans.ImmutableBean, Serializable
A bond future is a financial instrument that is based on the future value of a basket of fixed coupon bonds. The profit or loss of a bond future is settled daily.
BondFuture.| Modifier and Type | Class and Description |
|---|---|
static class |
BondFutureOptionSecurity.Builder
The bean-builder for
BondFutureOptionSecurity. |
static class |
BondFutureOptionSecurity.Meta
The meta-bean for
BondFutureOptionSecurity. |
| Modifier and Type | Method and Description |
|---|---|
static BondFutureOptionSecurity.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
BondFutureOptionPosition |
createPosition(PositionInfo positionInfo,
double longQuantity,
double shortQuantity,
ReferenceData refData)
Creates a position based on this security from a long and short quantity.
|
BondFutureOptionPosition |
createPosition(PositionInfo positionInfo,
double quantity,
ReferenceData refData)
Creates a position based on this security from a net quantity.
|
BondFutureOption |
createProduct(ReferenceData refData)
Creates the product associated with this security.
|
BondFutureOptionTrade |
createTrade(TradeInfo info,
double quantity,
double tradePrice,
ReferenceData refData)
Creates a trade based on this security.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency that the future is traded in.
|
LocalDate |
getExpiryDate()
Gets the expiry date of the option.
|
LocalTime |
getExpiryTime()
Gets the expiry time of the option.
|
ZoneId |
getExpiryZone()
Gets the time-zone of the expiry time.
|
SecurityInfo |
getInfo()
Gets the standard security information.
|
FutureOptionPremiumStyle |
getPremiumStyle()
Gets the style of the option premium.
|
PutCall |
getPutCall()
Gets whether the option is put or call.
|
Rounding |
getRounding()
Gets the definition of how to round the option price, defaulted to no rounding.
|
double |
getStrikePrice()
Gets the strike price, represented in decimal form.
|
SecurityId |
getUnderlyingFutureId()
Gets the identifier of the underlying future.
|
ImmutableSet<SecurityId> |
getUnderlyingIds()
Gets the set of underlying security identifiers.
|
int |
hashCode() |
static BondFutureOptionSecurity.Meta |
meta()
The meta-bean for
BondFutureOptionSecurity. |
BondFutureOptionSecurity.Meta |
metaBean() |
BondFutureOptionSecurity.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
BondFutureOptionSecurity |
withInfo(SecurityInfo info)
Returns an instance with the specified info.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSecurityIdpublic ImmutableSet<SecurityId> getUnderlyingIds()
SecurityThe set must contain all the security identifiers that this security directly refers to. For example, a bond future will return the identifiers of the underlying basket of bonds, but a bond future option will only return the identifier of the underlying future, not the basket.
getUnderlyingIds in interface Securitypublic BondFutureOptionSecurity withInfo(SecurityInfo info)
Securitypublic BondFutureOption createProduct(ReferenceData refData)
SecurityThe product of a security is distinct from the security. The product includes the financial details from this security, but excludes the additional information. The product also includes the products of any underlying securities.
createProduct in interface SecurityrefData - the reference data used to find underlying securitiespublic BondFutureOptionTrade createTrade(TradeInfo info, double quantity, double tradePrice, ReferenceData refData)
SecurityThis creates a trade of a suitable type for this security.
createTrade in interface Securityinfo - the trade informationquantity - the number of contracts in the tradetradePrice - the price agreed when the trade occurredrefData - the reference data used to find underlying securitiespublic BondFutureOptionPosition createPosition(PositionInfo positionInfo, double quantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
createPosition in interface SecuritypositionInfo - the position informationquantity - the number of contracts in the positionrefData - the reference data used to find underlying securitiespublic BondFutureOptionPosition createPosition(PositionInfo positionInfo, double longQuantity, double shortQuantity, ReferenceData refData)
SecurityThis creates a position of a suitable type for this security.
The long quantity and short quantity must be zero or positive, not negative.
createPosition in interface SecuritypositionInfo - the position informationlongQuantity - the long quantity in the positionshortQuantity - the short quantity in the positionrefData - the reference data used to find underlying securitiespublic static BondFutureOptionSecurity.Meta meta()
BondFutureOptionSecurity.public static BondFutureOptionSecurity.Builder builder()
public BondFutureOptionSecurity.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic SecurityInfo getInfo()
This includes the security identifier.
public Currency getCurrency()
getCurrency in interface Securitypublic PutCall getPutCall()
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.
public double getStrikePrice()
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.
public LocalDate getExpiryDate()
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.
public LocalTime getExpiryTime()
The expiry time is related to the expiry date and time-zone.
public ZoneId getExpiryZone()
The expiry time-zone is related to the expiry date and time.
public FutureOptionPremiumStyle getPremiumStyle()
The two options are daily margining and upfront premium.
public Rounding getRounding()
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.
public SecurityId getUnderlyingFutureId()
public BondFutureOptionSecurity.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.