Interface ResolvableSecurityTrade

    • Method Detail

      • resolveTarget

        default SecuritizedProductTrade<?> resolveTarget​(ReferenceData refData)
        Resolves the security identifier using the specified reference data.

        This takes the security identifier of this trade, looks it up in reference data, and returns the equivalent trade with full security information. If the security has underlying securities, they will also have been resolved in the result.

        The resulting trade is bound to data from reference data. If the data changes, the resulting trade form will not be updated. Care must be taken when placing the resolved form in a cache or persistence layer.

        Specified by:
        resolveTarget in interface ResolvableCalculationTarget
        refData - the reference data to use when resolving
        the resolved trade
        ReferenceDataNotFoundException - if an identifier cannot be resolved in the reference data
        RuntimeException - if unable to resolve due to an invalid definition