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
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
# },
# ...
# ]
# }
# ]
# }
# ]
# }
#}