P - the type of securitized productpublic interface SecuritizedProductPosition<P extends SecuritizedProduct> extends Position, SecuritizedProductPortfolioItem<P>
This defines a 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 storing positions, the standard trade type is SecurityPosition.
That type relies on securities being looked up in ReferenceData.
One use for positions that implement SecuritizedProductPosition is to price
and hold positions 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 SecurityId |
getSecurityId()
Gets the identifier of the underlying security.
|
SecuritizedProductPosition<P> |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
SecuritizedProductPosition<P> |
withQuantity(double quantity)
Returns an instance with the specified quantity.
|
getInfo, getQuantity, summarizegetCurrency, getProductgetIddefault SecurityId getSecurityId()
PositionThis identifier uniquely identifies the security within the system.
getSecurityId in interface PositiongetSecurityId in interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct>getSecurityId in interface SecurityQuantitySecuritizedProductPosition<P> withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioItemwithInfo in interface Positioninfo - the new infoSecuritizedProductPosition<P> withQuantity(double quantity)
withQuantity in interface PositionwithQuantity in interface SecuritizedProductPortfolioItem<P extends SecuritizedProduct>quantity - the new quantityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.