public interface FxProduct extends Product
FX products operate on two different currencies. For example, it might represent the payment of USD 1,000 and the receipt of EUR 932.
| Modifier and Type | Method and Description |
|---|---|
default ImmutableSet<Currency> |
allCurrencies()
Returns the set of currencies the product refers to.
|
CurrencyPair |
getCurrencyPair()
Gets the currency pair that the FX trade is based on, in conventional order.
|
default boolean |
isCrossCurrency()
Checks if this product is cross-currency.
|
allPaymentCurrenciesdefault boolean isCrossCurrency()
ProductA cross currency product is defined as one that refers to two or more currencies. Any product with direct or indirect FX exposure will be cross-currency.
For example, a fixed/Ibor swap in USD observing USD-LIBOR is not cross currency, but one that observes EURIBOR is cross currency.
isCrossCurrency in interface Productdefault ImmutableSet<Currency> allCurrencies()
ProductThis returns the complete set of currencies, not just the payment currencies. For example, the sets will differ when one of the currencies is non-deliverable.
allCurrencies in interface ProductCurrencyPair getCurrencyPair()
This represents the main currency pair of the FX. If the trade settles in a third currency, that is not recorded here.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.