curl --request GET \
--url https://api.messari.io/metrics/v1/markets/metrics \
--header 'X-Messari-API-Key: <api-key>'{
"error": null,
"data": {
"datasets": [
{
"slug": "price",
"granularities": [
"1d",
"1h"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Open Price",
"slug": "open-price",
"description": "USD price at the candle open.",
"is_timestamp": false
},
{
"name": "High Price",
"slug": "high-price",
"description": "High USD price during the candle.",
"is_timestamp": false
},
{
"name": "Low Price",
"slug": "low-price",
"description": "Low USD price during the candle.",
"is_timestamp": false
},
{
"name": "Close Price",
"slug": "close-price",
"description": "USD price at the candle close.",
"is_timestamp": false
}
]
},
{
"slug": "volume",
"granularities": [
"1d",
"1h"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Volume",
"slug": "volume",
"description": "Volume traded during candle.",
"is_timestamp": false
}
]
}
]
}
}Get the catalog of available timeseries datasets and granularities for markets. Use this to discover valid datasetSlug and granularity values for the market timeseries endpoints.
curl --request GET \
--url https://api.messari.io/metrics/v1/markets/metrics \
--header 'X-Messari-API-Key: <api-key>'{
"error": null,
"data": {
"datasets": [
{
"slug": "price",
"granularities": [
"1d",
"1h"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Open Price",
"slug": "open-price",
"description": "USD price at the candle open.",
"is_timestamp": false
},
{
"name": "High Price",
"slug": "high-price",
"description": "High USD price during the candle.",
"is_timestamp": false
},
{
"name": "Low Price",
"slug": "low-price",
"description": "Low USD price during the candle.",
"is_timestamp": false
},
{
"name": "Close Price",
"slug": "close-price",
"description": "USD price at the candle close.",
"is_timestamp": false
}
]
},
{
"slug": "volume",
"granularities": [
"1d",
"1h"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Volume",
"slug": "volume",
"description": "Volume traded during candle.",
"is_timestamp": false
}
]
}
]
}
}