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.
|
getIdgetQuantity, getSecurityIddouble getPrice()
This is the unit price agreed when the trade occurred.
SecurityQuantityTrade withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioItemwithInfo in interface Tradeinfo - 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.