Package com.opengamma.strata.product
Interface ProductTrade
-
- All Superinterfaces:
CalculationTarget
,PortfolioItem
,Trade
- All Known Subinterfaces:
FxOptionTrade
,FxTrade
,SecuritizedProductTrade<P>
- All Known Implementing Classes:
BillTrade
,BondFutureOptionTrade
,BondFutureTrade
,BulletPaymentTrade
,CapitalIndexedBondTrade
,CdsIndexTrade
,CdsTrade
,CmsTrade
,DsfTrade
,FixedCouponBondTrade
,FraTrade
,FxNdfTrade
,FxSingleBarrierOptionTrade
,FxSingleTrade
,FxSwapTrade
,FxVanillaOptionTrade
,GenericSecurityTrade
,IborCapFloorTrade
,IborFixingDepositTrade
,IborFutureOptionTrade
,IborFutureTrade
,OvernightFutureTrade
,SwaptionTrade
,SwapTrade
,TermDepositTrade
public interface ProductTrade extends Trade
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Product
getProduct()
Gets the underlying product that was agreed when the trade occurred.ProductTrade
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
-
-
-
Method Detail
-
getProduct
Product getProduct()
Gets the underlying product that was agreed when the trade occurred.The product captures the contracted financial details of the trade.
- Returns:
- the product
-
withInfo
ProductTrade withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Specified by:
withInfo
in interfaceTrade
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
-