public final class ImmutableOvernightIborSwapConvention extends Object implements OvernightIborSwapConvention, org.joda.beans.ImmutableBean, Serializable
This defines the market convention for a Fixed-Overnight single currency swap. This is often known as an OIS swap, although Fed Fund swaps are also covered. The convention is formed by combining two swap leg conventions in the same currency.
The convention is defined by four key dates.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOvernightIborSwapConvention.Builder
The bean-builder for
ImmutableOvernightIborSwapConvention. |
static class |
ImmutableOvernightIborSwapConvention.Meta
The meta-bean for
ImmutableOvernightIborSwapConvention. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableOvernightIborSwapConvention.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
IborRateSwapLegConvention |
getIborLeg()
Gets the market convention of the floating leg.
|
String |
getName()
Gets the convention name, such as 'USD-FED-FUND-AA-LIBOR-3M'.
|
OvernightRateSwapLegConvention |
getOvernightLeg()
Gets the market convention of the floating leg.
|
DaysAdjustment |
getSpotDateOffset()
Gets the offset of the spot value date from the trade date.
|
int |
hashCode() |
static ImmutableOvernightIborSwapConvention.Meta |
meta()
The meta-bean for
ImmutableOvernightIborSwapConvention. |
ImmutableOvernightIborSwapConvention.Meta |
metaBean() |
static ImmutableOvernightIborSwapConvention |
of(String name,
OvernightRateSwapLegConvention overnightLeg,
IborRateSwapLegConvention iborLeg)
Obtains a convention based on the specified name and leg conventions.
|
static ImmutableOvernightIborSwapConvention |
of(String name,
OvernightRateSwapLegConvention overnightLeg,
IborRateSwapLegConvention iborLeg,
DaysAdjustment spotDateOffset)
Obtains a convention based on the specified name and leg conventions.
|
ImmutableOvernightIborSwapConvention.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
SwapTrade |
toTrade(TradeInfo tradeInfo,
LocalDate startDate,
LocalDate endDate,
BuySell buySell,
double notional,
double spread)
Creates a trade based on this convention.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateTrade, createTrade, extendedEnum, of, toTradecalculateSpotDateFromTradeDatepublic static ImmutableOvernightIborSwapConvention of(String name, OvernightRateSwapLegConvention overnightLeg, IborRateSwapLegConvention iborLeg)
The two leg conventions must be in the same currency. The spot date offset is set to be the effective date offset of the Ibor index.
name - the unique name of the conventionovernightLeg - the market convention for the overnight legiborLeg - the market convention for the ibor legpublic static ImmutableOvernightIborSwapConvention of(String name, OvernightRateSwapLegConvention overnightLeg, IborRateSwapLegConvention iborLeg, DaysAdjustment spotDateOffset)
The two leg conventions must be in the same currency.
name - the unique name of the conventionovernightLeg - the market convention for the overnight legiborLeg - the market convention for the ibor legspotDateOffset - the offset of the spot value date from the trade datepublic SwapTrade toTrade(TradeInfo tradeInfo, LocalDate startDate, LocalDate endDate, BuySell buySell, double notional, double spread)
OvernightIborSwapConventionThis returns a trade based on the specified dates.
The notional is unsigned, with buy/sell determining the direction of the trade. If buying the swap, the Ibor rate is received from the counterparty, with the overnight and spread being paid. If selling the swap, the Ibor rate is paid to the counterparty, with the overnight and spread being received.
toTrade in interface OvernightIborSwapConventiontoTrade in interface SingleCurrencySwapConventiontradeInfo - additional information about the tradestartDate - the start dateendDate - the end datebuySell - the buy/sell flagnotional - the notional amountspread - the spread of added the overnight rates, typically derived from the marketpublic static ImmutableOvernightIborSwapConvention.Meta meta()
ImmutableOvernightIborSwapConvention.public static ImmutableOvernightIborSwapConvention.Builder builder()
public ImmutableOvernightIborSwapConvention.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic String getName()
getName in interface NamedgetName in interface OvernightIborSwapConventiongetName in interface SingleCurrencySwapConventionpublic OvernightRateSwapLegConvention getOvernightLeg()
getOvernightLeg in interface OvernightIborSwapConventionpublic IborRateSwapLegConvention getIborLeg()
getIborLeg in interface OvernightIborSwapConventionpublic DaysAdjustment getSpotDateOffset()
The offset is applied to the trade date to find the start date. A typical value is "plus 2 business days".
getSpotDateOffset in interface SingleCurrencySwapConventionpublic ImmutableOvernightIborSwapConvention.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.