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 FxProductgetProduct()Gets the underlying product that was agreed when the trade occurred.FxTradewithInfo(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:ProductTradeReturns an instance with the specified info.- Specified by:
withInfoin interfacePortfolioItem- Specified by:
withInfoin interfaceProductTrade- Specified by:
withInfoin interfaceTrade- Parameters:
info- the new info- Returns:
- the instance with the specified info
-
getProduct
FxProduct getProduct()
Description copied from interface:ProductTradeGets the underlying product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Specified by:
getProductin interfaceProductTrade- Returns:
- the product
-
-