Package com.opengamma.strata.product.fx
Interface FxTrade
-
- All Superinterfaces:
CalculationTarget
,PortfolioItem
,ProductTrade
,Trade
- All Known Subinterfaces:
FxOptionTrade
- All Known Implementing Classes:
FxNdfTrade
,FxSingleBarrierOptionTrade
,FxSingleTrade
,FxSwapTrade
,FxVanillaOptionTrade
public interface FxTrade extends ProductTrade
A foreign exchange trade, such as an FX forward, FX spot or FX option.FX trades operate on two different currencies. For example, it might represent the payment of USD 1,000 and the receipt of EUR 932.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FxProduct
getProduct()
Gets the underlying product that was agreed when the trade occurred.FxTrade
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
-
-
-
Method Detail
-
withInfo
FxTrade withInfo(PortfolioItemInfo info)
Description copied from interface:ProductTrade
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in interfaceProductTrade
- Specified by:
withInfo
in interfaceTrade
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
getProduct
FxProduct getProduct()
Description copied from interface:ProductTrade
Gets the underlying product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Specified by:
getProduct
in interfaceProductTrade
- Returns:
- the product
-
-