public interface SwapIndex extends Index, Named
Swap rates for different currencies are published by several providers. The indices can be related to IBOR-linked swaps or Overnight-linked swaps. Ref: https://quant.opengamma.io/Interest-Rate-Instruments-and-Market-Conventions.pdf
The most common implementations are provided in SwapIndices.
All implementations of this interface must be immutable and thread-safe.
| Modifier and Type | Method and Description |
|---|---|
default ZonedDateTime |
calculateFixingDateTime(LocalDate fixingDate)
Calculates the fixing date-time from the fixing date.
|
static ExtendedEnum<SwapIndex> |
extendedEnum()
Gets the extended enum helper.
|
LocalTime |
getFixingTime()
Gets the fixing time of the index.
|
ZoneId |
getFixingZone()
Gets the time-zone of the fixing time.
|
String |
getName()
Gets the name that uniquely identifies this index.
|
FixedFloatSwapTemplate |
getTemplate()
Gets the template for creating Fixed-Float swap.
|
boolean |
isActive()
Gets whether the index is active.
|
static SwapIndex |
of(String uniqueName)
Obtains an instance from the specified unique name.
|
static SwapIndex of(String uniqueName)
of in interface IndexuniqueName - the unique nameIllegalArgumentException - if the name is not knownstatic ExtendedEnum<SwapIndex> extendedEnum()
This helper allows instances of the index to be looked up. It also provides the complete set of available instances.
boolean isActive()
Over time some indices become inactive and are no longer produced. If this occurs, this method will return false.
LocalTime getFixingTime()
The fixing time is related to the fixing date and time-zone.
ZoneId getFixingZone()
The fixing time-zone is related to the fixing date and time.
FixedFloatSwapTemplate getTemplate()
default ZonedDateTime calculateFixingDateTime(LocalDate fixingDate)
The fixing date is the date on which the index is to be observed. The result combines the date with the time and zone stored in the index.
No error is thrown if the input date is not a valid fixing date.
fixingDate - the fixing dateCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.