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
TradeInfo
captures 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 TradeInfo
getInfo()
Gets the standard trade information.default PortfolioItemSummary
summarize()
Summarizes the portfolio item.Trade
withInfo(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:PortfolioItem
Summarizes the portfolio item.This provides a summary, including a human readable description.
- Specified by:
summarize
in 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:
getInfo
in interfacePortfolioItem
- Returns:
- the trade information
-
withInfo
Trade withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.- Specified by:
withInfo
in interfacePortfolioItem
- Parameters:
info
- the new info- Returns:
- the instance with the specified info
-
-