public final class ResolvedFra extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of Fra and is an input to the pricers.
Applications will typically create a ResolvedFra from a Fra
using Fra.resolve(ReferenceData).
A ResolvedFra is bound to data that changes over time, such as holiday calendars.
If the data changes, such as the addition of a new holiday, the resolved form will not be updated.
Care must be taken when placing the resolved form in a cache or persistence layer.
| Modifier and Type | Class and Description |
|---|---|
static class |
ResolvedFra.Builder
The bean-builder for
ResolvedFra. |
static class |
ResolvedFra.Meta
The meta-bean for
ResolvedFra. |
| Modifier and Type | Method and Description |
|---|---|
Set<IborIndex> |
allIndices()
Returns the set of indices referred to by the FRA.
|
static ResolvedFra.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
Currency |
getCurrency()
Gets the primary currency.
|
FraDiscountingMethod |
getDiscounting()
Gets the method to use for discounting.
|
LocalDate |
getEndDate()
Gets the end date, which is the termination date of the FRA.
|
double |
getFixedRate()
Gets the fixed rate of interest.
|
RateComputation |
getFloatingRate()
Gets the floating rate of interest.
|
double |
getNotional()
Gets the notional amount.
|
LocalDate |
getPaymentDate()
Gets the date that payment occurs.
|
LocalDate |
getStartDate()
Gets the start date, which is the effective date of the FRA.
|
double |
getYearFraction()
Gets the year fraction between the start and end date.
|
int |
hashCode() |
static ResolvedFra.Meta |
meta()
The meta-bean for
ResolvedFra. |
ResolvedFra.Meta |
metaBean() |
ResolvedFra.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public Set<IborIndex> allIndices()
A swap will typically refer to one index, such as 'GBP-LIBOR-3M'. Occasionally, it will refer to two indices.
public static ResolvedFra.Meta meta()
ResolvedFra.public static ResolvedFra.Builder builder()
public ResolvedFra.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic Currency getCurrency()
This is the currency of the FRA and the currency that payment is made in. The data model permits this currency to differ from that of the index, however the two are typically the same.
public double getNotional()
The notional, which is a positive signed amount if the FRA is 'buy', and a negative signed amount if the FRA is 'sell'.
The currency of the notional is specified by currency.
public LocalDate getPaymentDate()
This is an adjusted date, which should be a valid business day
public LocalDate getStartDate()
This is the first date that interest accrues.
This is an adjusted date, which should be a valid business day
public LocalDate getEndDate()
This is the last day that interest accrues. This date must be after the start date.
This is an adjusted date, which should be a valid business day
public double getYearFraction()
The value is usually calculated using a DayCount.
Typically the value will be close to 1 for one year and close to 0.5 for six months.
The fraction may be greater than 1, but not less than 0.
public double getFixedRate()
public RateComputation getFloatingRate()
The floating rate to be paid is based on this index. It will be a well known market index such as 'GBP-LIBOR-3M'.
public FraDiscountingMethod getDiscounting()
There are different approaches to FRA pricing in the area of discounting. This method specifies the approach for this FRA.
public ResolvedFra.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.