Class ResolvedFixedCouponBondOption
- java.lang.Object
-
- com.opengamma.strata.product.bond.ResolvedFixedCouponBondOption
-
- All Implemented Interfaces:
ResolvedProduct,Serializable,org.joda.beans.Bean,org.joda.beans.ImmutableBean
public final class ResolvedFixedCouponBondOption extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
An option on aFixedCouponBondresolved for pricing.The option strike is expressed as "Clean price". The "clean" price excludes any accrued interest.
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).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResolvedFixedCouponBondOption.BuilderThe bean-builder forResolvedFixedCouponBondOption.static classResolvedFixedCouponBondOption.MetaThe meta-bean forResolvedFixedCouponBondOption.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResolvedFixedCouponBondOption.Builderbuilder()Returns a builder used to create an instance of the bean.booleanequals(Object obj)CurrencygetCurrency()Returns the bond option currency.ZonedDateTimegetExpiry()Gets the expiry date-time of the option.LongShortgetLongShort()Gets whether the option is long or short.doublegetQuantity()Gets the quantity that was traded.ResolvedFixedCouponBondSettlementgetSettlement()Gets the bond's settlement details.ResolvedFixedCouponBondgetUnderlying()Gets the bond underlying the option.inthashCode()static ResolvedFixedCouponBondOption.Metameta()The meta-bean forResolvedFixedCouponBondOption.ResolvedFixedCouponBondOption.MetametaBean()ResolvedFixedCouponBondOption.BuildertoBuilder()Returns a builder that allows this bean to be mutated.StringtoString()
-
-
-
Method Detail
-
getCurrency
public Currency getCurrency()
Returns the bond option currency.- Returns:
- the currency
-
meta
public static ResolvedFixedCouponBondOption.Meta meta()
The meta-bean forResolvedFixedCouponBondOption.- Returns:
- the meta-bean, not null
-
builder
public static ResolvedFixedCouponBondOption.Builder builder()
Returns a builder used to create an instance of the bean.- Returns:
- the builder, not null
-
metaBean
public ResolvedFixedCouponBondOption.Meta metaBean()
- Specified by:
metaBeanin interfaceorg.joda.beans.Bean
-
getLongShort
public LongShort getLongShort()
Gets whether the option is long or short.Long indicates that the owner has the right to exercise the option at expiry.
- Returns:
- the value of the property, not null
-
getUnderlying
public ResolvedFixedCouponBond getUnderlying()
Gets the bond underlying the option.- Returns:
- the value of the property, not null
-
getExpiry
public ZonedDateTime getExpiry()
Gets the expiry date-time of the option.The option is European, and can only be exercised on the expiry date.
- Returns:
- the value of the property, not null
-
getQuantity
public double getQuantity()
Gets the quantity that was traded.This will be positive if buying (call) and negative if selling (put).
- Returns:
- the value of the property
-
getSettlement
public ResolvedFixedCouponBondSettlement getSettlement()
Gets the bond's settlement details.- Returns:
- the value of the property, not null
-
toBuilder
public ResolvedFixedCouponBondOption.Builder toBuilder()
Returns a builder that allows this bean to be mutated.- Returns:
- the mutable builder, not null
-
-