T - the type of the resolved tradepublic interface ResolvableTrade<T extends ResolvedTrade> extends Trade, Resolvable<T>
Resolvable trades are the primary definition of a trade that applications work with. They are resolved when necessary for use with pricers, locking in specific reference data.
| Modifier and Type | Method and Description |
|---|---|
T |
resolve(ReferenceData refData)
Resolves this trade using the specified reference data.
|
ResolvableTrade<T> |
withInfo(PortfolioItemInfo info)
Returns an instance with the specified info.
|
getIdT resolve(ReferenceData refData)
This converts this trade to the equivalent resolved form.
All ReferenceDataId identifiers in this instance will be resolved.
The resulting ResolvedTrade is optimized for pricing.
Resolved objects may be bound to data that changes over time, such as holiday calendars. If the data changes, such as the addition of a new holiday, the resolved form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.
resolve in interface Resolvable<T extends ResolvedTrade>refData - 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 definitionResolvableTrade<T> withInfo(PortfolioItemInfo info)
withInfo in interface PortfolioItemwithInfo in interface Tradeinfo - the new infoCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.