Package com.opengamma.strata.product
Interface Trade
-
- All Superinterfaces:
CalculationTarget,PortfolioItem
- All Known Subinterfaces:
EtdTrade,FxOptionTrade,FxTrade,ProductTrade,ResolvableSecurityTrade,ResolvableTrade<T>,SecuritizedProductTrade<P>,SecurityQuantityTrade
- All Known Implementing Classes:
BillTrade,BondFutureOptionTrade,BondFutureTrade,BulletPaymentTrade,CapitalIndexedBondTrade,CdsCalibrationTrade,CdsIndexCalibrationTrade,CdsIndexTrade,CdsTrade,CmsTrade,DsfTrade,EtdFutureTrade,EtdOptionTrade,FixedCouponBondTrade,FraTrade,FxNdfTrade,FxSingleBarrierOptionTrade,FxSingleTrade,FxSwapTrade,FxVanillaOptionTrade,GenericSecurityTrade,IborCapFloorTrade,IborFixingDepositTrade,IborFutureOptionTrade,IborFutureTrade,OvernightFutureTrade,SecurityTrade,SwaptionTrade,SwapTrade,TermDepositTrade
public interface Trade extends PortfolioItem
A trade with additional structured information.A trade is a transaction that occurred on a specific date between two counterparties. For example, an interest rate swap trade agreed on a particular date for cash-flows in the future.
The reference to
TradeInfocaptures structured information common to different types of trade.Implementations of this interface must be immutable beans.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TradeInfogetInfo()Gets the standard trade information.default PortfolioItemSummarysummarize()Summarizes the portfolio item.TradewithInfo(PortfolioItemInfo info)Returns an instance with the specified info.-
Methods inherited from interface com.opengamma.strata.product.PortfolioItem
getId
-
-
-
-
Method Detail
-
summarize
default PortfolioItemSummary summarize()
Description copied from interface:PortfolioItemSummarizes the portfolio item.This provides a summary, including a human readable description.
- Specified by:
summarizein interfacePortfolioItem- Returns:
- the summary of the item
-
getInfo
TradeInfo getInfo()
Gets the standard trade information.All trades contain this standard set of information.
- Specified by:
getInfoin interfacePortfolioItem- Returns:
- the trade information
-
withInfo
Trade withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfoin interfacePortfolioItem- Parameters:
info- the new info- Returns:
- the instance with the specified info
-
-