public interface SecurityQuantityTrade extends Trade, SecurityQuantity
If the trade is directly based on a securitized product, the trade type is SecuritizedProductTrade
.
If not, the financial instrument involved in the trade is represented in alternative form, e.g., Security
.
See individual implementations for more details.
Modifier and Type | Method and Description |
---|---|
double |
getPrice()
Gets the price that was traded.
|
SecurityQuantityTrade |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
SecurityQuantityTrade |
withPrice(double price)
Returns an instance with the specified price.
|
SecurityQuantityTrade |
withQuantity(double quantity)
Returns an instance with the specified quantity.
|
getId
getQuantity, getSecurityId
double getPrice()
This is the unit price agreed when the trade occurred.
SecurityQuantityTrade withInfo(PortfolioItemInfo info)
withInfo
in interface PortfolioItem
withInfo
in interface Trade
info
- the new infoSecurityQuantityTrade withQuantity(double quantity)
quantity
- the new quantitySecurityQuantityTrade withPrice(double price)
price
- the new priceCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.