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 ProductgetProduct()Gets the underlying product that was agreed when the trade occurred.ProductTradewithInfo(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:
withInfoin interfacePortfolioItem- Specified by:
withInfoin interfaceTrade- Parameters:
info- the new info- Returns:
- the instance with the specified info
-
-