public final class Swaption extends Object implements Product, Resolvable<ResolvedSwaption>, org.joda.beans.ImmutableBean, Serializable
A swaption is a financial instrument that provides an option based on the future value of a swap. The option is European, exercised only on the exercise date. The underlying swap must be a single currency, Fixed-Float swap with a single index. The index may be Ibor or Overnight.
| Modifier and Type | Class and Description |
|---|---|
static class |
Swaption.Builder
The bean-builder for
Swaption. |
static class |
Swaption.Meta
The meta-bean for
Swaption. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
static Swaption.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the currency of the swaption.
|
ZonedDateTime |
getExpiry()
Gets the expiry date-time.
|
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.
|
RateIndex |
getIndex()
Gets the index of the underlying swap.
|
LongShort |
getLongShort()
Gets whether the option is long or short.
|
SwaptionSettlement |
getSwaptionSettlement()
Gets settlement method.
|
Swap |
getUnderlying()
Gets the underlying swap.
|
int |
hashCode() |
static Swaption.Meta |
meta()
The meta-bean for
Swaption. |
Swaption.Meta |
metaBean() |
ResolvedSwaption |
resolve(ReferenceData refData) |
Swaption.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitallPaymentCurrencies, isCrossCurrencypublic ZonedDateTime getExpiry()
The option expires at this date and time.
The result is returned by combining the expiry date, time and time-zone.
public Currency getCurrency()
This is the currency of the underlying swap, which is not allowed to be cross-currency.
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 RateIndex getIndex()
public ResolvedSwaption resolve(ReferenceData refData)
resolve in interface Resolvable<ResolvedSwaption>public static Swaption.Meta meta()
Swaption.public static Swaption.Builder builder()
public Swaption.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic LongShort getLongShort()
Long indicates that the owner wants the option to be in the money at expiry. Short indicates that the owner wants the option to be out of the money at expiry.
public SwaptionSettlement getSwaptionSettlement()
The settlement of the option is specified by SwaptionSettlement.
public AdjustableDate getExpiryDate()
The option is European, and can only be exercised on the expiry date.
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 Swap getUnderlying()
At expiry, if the option is exercised, this swap will be entered into. The swap description is the swap as viewed by the party long the option.
public Swaption.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.