P - the type of securitized productpublic interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct> extends PortfolioItem, SecurityQuantity
This defines a trade or position 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 and the
standard position type is SecurityPosition.
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 |
|---|---|
default Currency |
getCurrency()
Gets the currency of the position.
|
P |
getProduct()
Gets the product of the security that was traded.
|
default SecurityId |
getSecurityId()
Gets the security identifier.
|
SecuritizedProductPortfolioItem<P> |
withQuantity(double quantity)
Returns an instance with the specified quantity.
|
getId, getInfo, summarize, withInfogetQuantityP getProduct()
default Currency getCurrency()
This is typically the same as the currency of the product.
default SecurityId getSecurityId()
SecurityQuantityThis identifier uniquely identifies the security within the system.
getSecurityId in interface SecurityQuantitySecuritizedProductPortfolioItem<P> withQuantity(double quantity)
quantity - the new quantityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.