public final class FixedCouponBondOption extends Object implements Product, Resolvable<ResolvedFixedCouponBondOption>, org.joda.beans.ImmutableBean, Serializable
FixedCouponBond.
The option strike is expressed as "Clean price". The "clean" price excludes any accrued interest. The clean price is in the currency of the underlying bond.
The call/put is provided by the quantity's sign. If positive, it indicates the right to buy the bond (call), if negative it indicates the right to sell the bond (put).
| Modifier and Type | Class and Description |
|---|---|
static class |
FixedCouponBondOption.Builder
The bean-builder for
FixedCouponBondOption. |
static class |
FixedCouponBondOption.Meta
The meta-bean for
FixedCouponBondOption. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
static FixedCouponBondOption.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
double |
getCleanStrikePrice()
Gets the clean price at which the option can be exercised, in decimal form.
|
Currency |
getCurrency()
The currency of the underlying bond.
|
AdjustableDate |
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.
|
LongShort |
getLongShort()
Gets whether the option is long or short.
|
double |
getQuantity()
Gets the quantity that was traded.
|
AdjustableDate |
getSettlementDate()
Gets the settlement date when the option is exercised.
|
FixedCouponBond |
getUnderlying()
Gets the bond underlying the option.
|
int |
hashCode() |
static FixedCouponBondOption.Meta |
meta()
The meta-bean for
FixedCouponBondOption. |
FixedCouponBondOption.Meta |
metaBean() |
ResolvedFixedCouponBondOption |
resolve(ReferenceData refData) |
FixedCouponBondOption.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallPaymentCurrencies, isCrossCurrencypublic Currency getCurrency()
public ResolvedFixedCouponBondOption resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedFixedCouponBondOption>public ImmutableSet<Currency> allCurrencies()
ProductThis returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.
allCurrencies in interface Productpublic static FixedCouponBondOption.Meta meta()
FixedCouponBondOption.public static FixedCouponBondOption.Builder builder()
public FixedCouponBondOption.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LongShort getLongShort()
Long indicates that the owner has the right to exercise the option at expiry.
public FixedCouponBond getUnderlying()
public AdjustableDate getExpiryDate()
This is the last date that the option can be exercised.
This date is typically set to be a valid business day.
However, the businessDayAdjustment property may be set to provide a rule for adjustment.
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 double getQuantity()
This will be positive if buying (call) and negative if selling (put).
public double getCleanStrikePrice()
The "clean" price excludes any accrued interest.
Strata uses decimal prices for bonds in the trade model, pricers and market data. For example, a price of 99.32% is represented in Strata by 0.9932.
public AdjustableDate getSettlementDate()
This date is typically set to be a valid business day.
However, the businessDayAdjustment property may be set to provide a rule for adjustment.
public FixedCouponBondOption.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.