public interface ResolvableSecurityPosition extends Position, ResolvableCalculationTarget
This represents those positions that hold a security identifier. It allows the position to be resolved, returning an alternate representation of the same position with complete security information.
| Modifier and Type | Method and Description |
|---|---|
SecuritizedProductPosition<?> |
resolveTarget(ReferenceData refData)
Resolves the security identifier using the specified reference data.
|
ResolvableSecurityPosition |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
ResolvableSecurityPosition |
withQuantity(double quantity)
Returns an instance with the specified quantity.
|
getInfo, getQuantity, getSecurityId, summarizegetIdSecuritizedProductPosition<?> resolveTarget(ReferenceData refData)
This takes the security identifier of this position, looks it up in reference data, and returns the equivalent position with full security information. If the security has underlying securities, they will also have been resolved in the result.
The resulting position is bound to data from reference data. If the data changes, the resulting position form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.
resolveTarget in interface ResolvableCalculationTargetrefData - the reference data to use when resolvingReferenceDataNotFoundException - if an identifier cannot be resolved in the reference dataRuntimeException - if unable to resolve due to an invalid definitionResolvableSecurityPosition withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioItemwithInfo in interface Positioninfo - the new infoResolvableSecurityPosition withQuantity(double quantity)
withQuantity in interface Positionquantity - the new quantityCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.