public final class ResolvedFxNdf extends Object implements ResolvedProduct, org.joda.beans.ImmutableBean, Serializable
This is the resolved form of FxNdf
and is an input to the pricers.
Applications will typically create a ResolvedFxNdf
from a FxNdf
using FxNdf.resolve(ReferenceData)
.
A ResolvedFxNdf
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 |
ResolvedFxNdf.Builder
The bean-builder for
ResolvedFxNdf . |
static class |
ResolvedFxNdf.Meta
The meta-bean for
ResolvedFxNdf . |
Modifier and Type | Method and Description |
---|---|
static ResolvedFxNdf.Builder |
builder()
Returns a builder used to create an instance of the bean.
|
boolean |
equals(Object obj) |
FxRate |
getAgreedFxRate()
Gets the FX rate agreed for the value date at the inception of the trade.
|
FxIndex |
getIndex()
Gets the FX index.
|
Currency |
getNonDeliverableCurrency()
Gets the non-deliverable currency.
|
FxIndexObservation |
getObservation()
Gets the FX index observation.
|
LocalDate |
getPaymentDate()
Gets the date that the forward settles.
|
Currency |
getSettlementCurrency()
Gets the settlement currency.
|
CurrencyAmount |
getSettlementCurrencyNotional()
Gets the notional amount in the settlement currency, positive if receiving, negative if paying.
|
double |
getSettlementNotional()
Gets the settlement notional.
|
int |
hashCode() |
static ResolvedFxNdf.Meta |
meta()
The meta-bean for
ResolvedFxNdf . |
ResolvedFxNdf.Meta |
metaBean() |
ResolvedFxNdf.Builder |
toBuilder()
Returns a builder that allows this bean to be mutated.
|
String |
toString() |
public FxIndex getIndex()
public Currency getSettlementCurrency()
public double getSettlementNotional()
Returns the signed notional amount that is to be settled in the settlement currency.
public Currency getNonDeliverableCurrency()
Returns the currency that is not the settlement currency.
public static ResolvedFxNdf.Meta meta()
ResolvedFxNdf
.public static ResolvedFxNdf.Builder builder()
public ResolvedFxNdf.Meta metaBean()
metaBean
in interface org.joda.beans.Bean
public CurrencyAmount getSettlementCurrencyNotional()
The amount is signed. A positive amount indicates the payment is to be received. A negative amount indicates the payment is to be paid.
This must be specified in one of the two currencies of the forward.
public FxRate getAgreedFxRate()
The settlement amount is based on the difference between this rate and the
rate observed on the fixing date using the index
.
The forward is between the two currencies defined by the rate.
public FxIndexObservation getObservation()
This defines the observation of the index used to settle the trade. The value of the trade is based on the difference between the actual rate and the agreed rate.
An FX index is a daily rate of exchange between two currencies. Note that the order of the currencies in the index does not matter, as the conversion direction is fully defined by the currency of the reference amount.
public LocalDate getPaymentDate()
On this date, the settlement amount will be exchanged. This date should be a valid business day.
public ResolvedFxNdf.Builder toBuilder()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.