Skip to main content
Skip table of contents

2.3.1 metrics

Purpose
Returns metrics data for indices.

Parameters

  • entity_id (string or list of strings, required):
    The ticker(s) of the index or segment for which we want data. Refer to the 1.6 Indices Catalogue for all available tickers.

  • metric_id (string or list of strings, required):
    The ticker(s) of the metric we want to query. Refer to the metric list for available options, 1.3 Market Indices and 1.4 Benchmarks.

Example

PY
response = await service.metrics(entity_id="INFRBGWX", metric_id="T01414")

#Sample Response
#{
#    "data": {
#        "results": [
#            {
#                "metrics": [
#                    {
#                        "indexId": "INFRBGWX",
#                        "values": [
#                            {
#                                "typeId": "T01414",
#                                "valueDate": "2025-03-31",
#                                "reportDate": "2025-03-31",
#                                "value": 8721.99225055004,
#                                "unitId": 1,
#                                "currencyId": 991
#                            },
#							 ...
#						]
#					}
#				]
#            }
#        ]
#    }
#}						

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.