public interface OvernightRateComputation extends RateComputation
| Modifier and Type | Method and Description |
|---|---|
default LocalDate |
calculateEffectiveFromFixing(LocalDate fixingDate)
Calculates the effective date from the fixing date.
|
default LocalDate |
calculateFixingFromEffective(LocalDate effectiveDate)
Calculates the fixing date from the effective date.
|
default LocalDate |
calculateMaturityFromEffective(LocalDate effectiveDate)
Calculates the maturity date from the effective date.
|
default LocalDate |
calculateMaturityFromFixing(LocalDate fixingDate)
Calculates the maturity date from the fixing date.
|
default LocalDate |
calculatePublicationFromFixing(LocalDate fixingDate)
Calculates the publication date from the fixing date.
|
default void |
collectIndices(ImmutableSet.Builder<Index> builder)
Collects all the indices referred to by this computation.
|
LocalDate |
getEndDate()
Obtains the fixing date associated with the end date of the accrual period.
|
HolidayCalendar |
getFixingCalendar()
Obtains the resolved calendar that the index uses.
|
OvernightIndex |
getIndex()
Obtains the Overnight index.
|
LocalDate |
getStartDate()
Obtains the fixing date associated with the start date of the accrual period.
|
default OvernightIndexObservation |
observeOn(LocalDate fixingDate)
Creates an observation object for the specified fixing date.
|
static OvernightRateComputation |
of(OvernightIndex index,
LocalDate startDate,
LocalDate endDate,
int rateCutOffDays,
OvernightAccrualMethod accrualMethod,
ReferenceData referenceData)
Obtains an instance.
|
static OvernightRateComputation of(OvernightIndex index, LocalDate startDate, LocalDate endDate, int rateCutOffDays, OvernightAccrualMethod accrualMethod, ReferenceData referenceData)
index - the indexstartDate - the start dateendDate - the end daterateCutOffDays - the rate cutoff daysaccrualMethod - the accrual methodreferenceData - the reference dataOvernightIndex getIndex()
The rate to be paid is based on this index. It will be a well known market index such as 'GBP-SONIA'.
HolidayCalendar getFixingCalendar()
LocalDate getStartDate()
This is also the first fixing date. The overnight rate is observed from this date onwards.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
LocalDate getEndDate()
The overnight rate is observed until this date.
In general, the fixing dates and accrual dates are the same for an overnight index. However, in the case of a Tomorrow/Next index, the fixing period is one business day before the accrual period.
default LocalDate calculatePublicationFromFixing(LocalDate fixingDate)
The fixing date is the date on which the index is to be observed. The publication date is the date on which the fixed rate is actually published.
No error is thrown if the input date is not a valid fixing date. Instead, the fixing date is moved to the next valid fixing date and then processed.
fixingDate - the fixing datedefault LocalDate calculateEffectiveFromFixing(LocalDate fixingDate)
The fixing date is the date on which the index is to be observed. The effective date is the date on which the implied deposit starts.
No error is thrown if the input date is not a valid fixing date. Instead, the fixing date is moved to the next valid fixing date and then processed.
fixingDate - the fixing datedefault LocalDate calculateMaturityFromFixing(LocalDate fixingDate)
The fixing date is the date on which the index is to be observed. The maturity date is the date on which the implied deposit ends.
No error is thrown if the input date is not a valid fixing date. Instead, the fixing date is moved to the next valid fixing date and then processed.
fixingDate - the fixing datedefault LocalDate calculateFixingFromEffective(LocalDate effectiveDate)
The fixing date is the date on which the index is to be observed. The effective date is the date on which the implied deposit starts.
No error is thrown if the input date is not a valid effective date. Instead, the effective date is moved to the next valid effective date and then processed.
effectiveDate - the effective datedefault LocalDate calculateMaturityFromEffective(LocalDate effectiveDate)
The effective date is the date on which the implied deposit starts. The maturity date is the date on which the implied deposit ends.
No error is thrown if the input date is not a valid effective date. Instead, the effective date is moved to the next valid effective date and then processed.
effectiveDate - the effective datedefault OvernightIndexObservation observeOn(LocalDate fixingDate)
fixingDate - the fixing datedefault void collectIndices(ImmutableSet.Builder<Index> builder)
RateComputationA computation will typically refer to one index, such as 'GBP-LIBOR-3M'. Each index that is referred to must be added to the specified builder.
collectIndices in interface RateComputationbuilder - the builder to useCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.