Get metric breakdown aggregation for multiple projects, chains, or products
Changed onUse this endpoint to retrieve metric breakdown aggregation for multiple projects including avg, change, sum, trend, and latest values over a given interval or date range. When looking at cumulative metrics such as fees, reference sums for the total aggregate, and when looking at static metrics such as total value locked, reference latest values for the latest running total. See the response reference below for more details.
This endpoint supports partial success - if some of the requested metric, project, chain, or product IDs are not found, the endpoint will return data for the valid entities and include an errors array with details about the invalid ones.
Request
- Base URLhttps://api.tokenterminal.com
- AuthHTTP bearer
Request body
Example request
{
"market_sector_ids": [
"blockchains-l1",
"lending"
]
}Response
OK
Example response
{
"data": [
{
"data_id": "usual",
"chain_id": "usual",
"product_id": "usual"
}
],
"errors": [
{
"code": "NOT_FOUND",
"field": "project_ids",
"value": "invalid-project"
}
]
}Changes
- info
the request property
became optional - info
the
request property default value7dwas added - info
added the new
1095denum value to the request property - info
added the new
1825denum value to the request property
- info