Summary

The elCurrentMeasure function retrieves a number of different current measures for a list of instruments. The function supports positions, contributions and portfolio as calculation levels.

Examples

In these examples the risk measure that the function aims to retrieve is the net present value (NPV).

=elCurrentMeasure("NPV","positions",C11,D11,"EUR", "relative")

Retrieves the current NPV of one unique asset whose ID is in cell C11 and quantity in cell D11. The currency is EUR. MeasureType is set to relative.

=elCurrentMeasure("NPV","portfolio",C11:C50,D11:D50,"EUR", "relative")

Retrieves the current NPV of a portfolio where C11:C50 are the asset IDs within the portfolio and D11:D50 are the quantities of each asset. The currency is EUR.

=elCurrentMeasure("NPV","portfolio",{"CHF","EUR"},{1000,1000},"EUR", "relative")

This example can be copied and pasted to Excel and will give an instantaneous result.

Syntax

elCurrentMeasure(Measure, CaluclationsLevel, AssetIDs[], Quantities[], Currency, MeasureType)
Argument name Default Description
Measures   The name of the measure to be returned.
CalculationsLevel   The granularity at which the results should be calculated (individual asset, portfolio).
AssetIDs   Single or multiple asset identifiers (ISIN, FIGI, currency ISO, Edgelab ID).
Quantities (Optional) 1 Asset quantities in the same orders as the specified asset ids.
Currency (Optional) local The ISO code of the reference currency for deriving the calculation results. Specify “local” to use the instruments native currency where appropriate. It is mandatory to specify a currency when the granularity is “portfolio”.
MeasureType (Optional) relative Whether the result should be normalized. The input should be “relative” or “absolute”. “True” or “False” are still supported for the moment.