public interface Trade extends PortfolioItem
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.
| Modifier and Type | Method and 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.
|
getIddefault PortfolioItemSummary summarize()
PortfolioItemThis provides a summary, including a human readable description.
summarize in interface PortfolioItemTradeInfo getInfo()
All trades contain this standard set of information.
getInfo in interface PortfolioItemTrade withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioIteminfo - the new infoCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.