public final class OvernightAveragedDailyRateComputation extends Object implements OvernightRateComputation, org.joda.beans.ImmutableBean, Serializable
An interest rate determined directly from an Overnight index by averaging the value of each day's rate over the period strictly between the start date and end date.
The start date and end date can be non-business days. The average is taken on calendar days between the start and end dates.
If a day in the period is not a business day on the fixing calendar of the Overnight index, the overnight rate fixed on the previous business day is used.
For example, a rate determined averaging values from 'USD-FED-FUND'.
| Modifier and Type | Class and Description |
|---|---|
static class |
OvernightAveragedDailyRateComputation.Builder
The bean-builder for
OvernightAveragedDailyRateComputation. |
static class |
OvernightAveragedDailyRateComputation.Meta
The meta-bean for
OvernightAveragedDailyRateComputation. |
| Modifier and Type | Method and Description |
|---|---|
static OvernightAveragedDailyRateComputation.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
LocalDate |
getEndDate()
Gets the end date of the accrual period.
|
HolidayCalendar |
getFixingCalendar()
Gets the resolved calendar that the index uses.
|
OvernightIndex |
getIndex()
Gets the Overnight index.
|
LocalDate |
getStartDate()
Gets the start date of the accrual period.
|
int |
hashCode() |
static OvernightAveragedDailyRateComputation.Meta |
meta()
The meta-bean for
OvernightAveragedDailyRateComputation. |
OvernightAveragedDailyRateComputation.Meta |
metaBean() |
static OvernightAveragedDailyRateComputation |
of(OvernightIndex index,
LocalDate startDate,
LocalDate endDate,
ReferenceData refData)
Creates an instance from an index and accrual period dates
|
OvernightAveragedDailyRateComputation.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcalculateEffectiveFromFixing, calculateFixingFromEffective, calculateMaturityFromEffective, calculateMaturityFromFixing, calculatePublicationFromFixing, collectIndices, observeOn, ofpublic static OvernightAveragedDailyRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, ReferenceData refData)
The dates represent the accrual period.
index - the indexstartDate - the first date of the accrual periodendDate - the last date of the accrual periodrefData - the reference data to use when resolving holiday calendarspublic static OvernightAveragedDailyRateComputation.Meta meta()
OvernightAveragedDailyRateComputation.public static OvernightAveragedDailyRateComputation.Builder builder()
public OvernightAveragedDailyRateComputation.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic OvernightIndex getIndex()
The rate to be paid is based on this index. It will be a well known market index such as 'GBP-SONIA'.
getIndex in interface OvernightRateComputationpublic HolidayCalendar getFixingCalendar()
getFixingCalendar in interface OvernightRateComputationpublic LocalDate getStartDate()
This is not necessarily a valid business day.
In this case, the first fixing date is the previous business day of the start date on fixingCalendar.
getStartDate in interface OvernightRateComputationpublic LocalDate getEndDate()
This is not necessarily a valid business day.
In this case, the last fixing date is the previous business day of the end date on fixingCalendar.
getEndDate in interface OvernightRateComputationpublic OvernightAveragedDailyRateComputation.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.