P - the type of securitized productpublic interface SecuritizedProductTrade<P extends SecuritizedProduct> extends ProductTrade, SecurityQuantityTrade, SecuritizedProductPortfolioItem<P>
This defines a trade in a securitized product.
A securitized product contains the structure of a financial instrument that is traded as a Security.
See SecuritizedProduct to understand the difference between a security and a securitized product.
When trading securities, the standard trade type is SecurityTrade.
That trade type relies on securities being looked up in ReferenceData.
One use for trade types that implement SecuritizedProductTrade is to price
and hold trades without needing to populate reference data, because the securitized
product representation completely models the trade.
Implementations of this interface must be immutable beans.
| Modifier and Type | Method and Description |
|---|---|
SecuritizedProductTrade<P> |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
SecuritizedProductTrade<P> |
withPrice(double price)
Returns an instance with the specified price.
|
SecuritizedProductTrade<P> |
withQuantity(double quantity)
Returns an instance with the specified quantity.
|
getProductgetPricegetIdgetCurrency, getProduct, getSecurityIdgetQuantitySecuritizedProductTrade<P> withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioItemwithInfo in interface ProductTradewithInfo in interface SecurityQuantityTradewithInfo in interface Tradeinfo - the new infoSecuritizedProductTrade<P> withQuantity(double quantity)
withQuantity in interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct>withQuantity in interface SecurityQuantityTradequantity - the new quantitySecuritizedProductTrade<P> withPrice(double price)
withPrice in interface SecurityQuantityTradeprice - the new priceCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.