Skip to main content
GET
/
metrics
/
v2
/
assets
/
metrics
Get timeseries metrics catalog
curl --request GET \
  --url https://api.messari.io/metrics/v2/assets/metrics \
  --header 'X-Messari-API-Key: <api-key>'
import requests

url = "https://api.messari.io/metrics/v2/assets/metrics"

headers = {"X-Messari-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Messari-API-Key': '<api-key>'}};

fetch('https://api.messari.io/metrics/v2/assets/metrics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.messari.io/metrics/v2/assets/metrics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Messari-API-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.messari.io/metrics/v2/assets/metrics"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Messari-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.messari.io/metrics/v2/assets/metrics")
.header("X-Messari-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.messari.io/metrics/v2/assets/metrics")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Messari-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "error": null,
  "data": {
    "datasets": [
      {
        "slug": "futures-funding-rate",
        "granularities": [
          "1d",
          "1h"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Funding Rate (OI Weighted)",
            "slug": "funding-rate-open-interest",
            "description": "The funding rate for the asset weighted by the open interest. This is expressed as a percentage, e.g. 0.01 = 1%.",
            "is_timestamp": false
          },
          {
            "name": "Funding Rate (Volume Weighted)",
            "slug": "funding-rate-volume",
            "description": "The funding rate for the asset weighted by trading volume. This is expressed as a percentage, e.g. 0.01 = 1%.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "futures-open-interest",
        "granularities": [
          "1d",
          "1h"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Open Interest",
            "slug": "open-interest",
            "description": "The open interest for the asset.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "futures-volume",
        "granularities": [
          "1d",
          "1h"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Futures Trade Count",
            "slug": "trade-count",
            "description": "The number of trades for the asset on the exchange",
            "is_timestamp": false
          },
          {
            "name": "Futures Volume (USD)",
            "slug": "volume-usd",
            "description": "The volume of the asset on the exchange in USD",
            "is_timestamp": false
          },
          {
            "name": "Futures Volume Buy (USD)",
            "slug": "volume-buy-usd",
            "description": "The volume of the asset on the exchange in USD for buy trades",
            "is_timestamp": false
          },
          {
            "name": "Futures Volume Sell (USD)",
            "slug": "volume-sell-usd",
            "description": "The volume of the asset on the exchange in USD for sell trades",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "marketcap",
        "granularities": [
          "1h",
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Circulating Marketcap",
            "slug": "circulating-marketcap",
            "description": "The market capitalization of the asset, calculated using the circulating supply",
            "is_timestamp": false
          },
          {
            "name": "Circulating Marketcap Dominance",
            "slug": "circulating-marketcap-dominance",
            "description": "The market capitalization of the asset as a percentage of the total market capitalization of all crypto assets",
            "is_timestamp": false
          },
          {
            "name": "Fully Diluted Marketcap",
            "slug": "fully-diluted-marketcap",
            "description": "The market capitalization of the asset, calculated using the fully diluted supply. Commonly known as Fully Diluted Valuation (FDV).",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "price",
        "granularities": [
          "5m",
          "1h",
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Open Price",
            "slug": "open",
            "description": "Price at the candle open.",
            "is_timestamp": false
          },
          {
            "name": "High Price",
            "slug": "high",
            "description": "High price during the candle.",
            "is_timestamp": false
          },
          {
            "name": "Low Price",
            "slug": "low",
            "description": "Low price during the candle.",
            "is_timestamp": false
          },
          {
            "name": "Close Price",
            "slug": "close",
            "description": "Price at the candle close.",
            "is_timestamp": false
          },
          {
            "name": "Volume",
            "slug": "volume",
            "description": "Volume traded during candle.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "sharpe-ratio",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Sharpe Ratio 30D",
            "slug": "sharpe-ratio-30d",
            "description": "The Sharpe ratio of the asset over the last 30 days",
            "is_timestamp": false
          },
          {
            "name": "Sharpe Ratio 90D",
            "slug": "sharpe-ratio-90d",
            "description": "The Sharpe ratio of the asset over the last 90 days",
            "is_timestamp": false
          },
          {
            "name": "Sharpe Ratio 1Y",
            "slug": "sharpe-ratio-1y",
            "description": "The Sharpe ratio of the asset over the last year",
            "is_timestamp": false
          },
          {
            "name": "Sharpe Ratio 3Y",
            "slug": "sharpe-ratio-3y",
            "description": "The Sharpe ratio of the asset over the last 3 years",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "stablecoin-network-breakdown",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Breakdown Stablecoin Outstanding Supply USD",
            "slug": "breakdown-stablecoin-outstanding-supply-usd",
            "description": "The total outstanding supply in USD for this stablecoin broken down by network.",
            "is_timestamp": false
          },
          {
            "name": "Breakdown Stablecoin Mints USD",
            "slug": "breakdown-stablecoin-mints-usd",
            "description": "The total value of new stablecoins minted in USD broken down by network.",
            "is_timestamp": false
          },
          {
            "name": "Breakdown Stablecoin Redemptions USD",
            "slug": "breakdown-stablecoin-redemptions-usd",
            "description": "The total value of stablecoins redeemed in USD broken down by network.",
            "is_timestamp": false
          },
          {
            "name": "Breakdown Stablecoin Transfer Volume USD",
            "slug": "breakdown-stablecoin-transfer-volume-usd",
            "description": "The total value of onchain transactions conducted with this stablecoin broken down by network, measured in USD.",
            "is_timestamp": false
          },
          {
            "name": "Breakdown Stablecoin Transfer Count",
            "slug": "breakdown-stablecoin-transfer-count",
            "description": "The total number of stablecoin transfer transactions broken down by network.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "stablecoin-supply",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Stablecoin Outstanding Supply USD",
            "slug": "stablecoin-outstanding-supply-usd",
            "description": "The total outstanding supply in USD for this stablecoin on a given interval.",
            "is_timestamp": false
          },
          {
            "name": "Stablecoin Mints USD",
            "slug": "stablecoin-mints-usd",
            "description": "The total value of new stablecoins minted in USD.",
            "is_timestamp": false
          },
          {
            "name": "Stablecoin Redemptions USD",
            "slug": "stablecoin-redemptions-usd",
            "description": "The total value of stablecoins redeemed in USD.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "stablecoin-transfers",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Stablecoin Transfer Volume USD",
            "slug": "stablecoin-transfer-volume-usd",
            "description": "The total value of onchain transactions conducted with this stablecoin, measured in USD.",
            "is_timestamp": false
          },
          {
            "name": "Stablecoin Transfer Count",
            "slug": "stablecoin-transfer-count",
            "description": "The total number of stablecoin transfer transactions.",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "supply",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Circulating Supply",
            "slug": "circulating-supply",
            "description": "The number of tokens that exist, excluding those that are locked in contracts or otherwise not available for trading",
            "is_timestamp": false
          },
          {
            "name": "Total Supply",
            "slug": "total-supply",
            "description": "The total number of tokens that exist",
            "is_timestamp": false
          }
        ]
      },
      {
        "slug": "volatility",
        "granularities": [
          "1d",
          "1w"
        ],
        "metrics": [
          {
            "name": "Timestamp",
            "slug": "time",
            "description": "Timestamp of the data point.",
            "is_timestamp": true
          },
          {
            "name": "Volatility 30D",
            "slug": "volatility-30d",
            "description": "The average daily price movement of the asset over the last 30 days",
            "is_timestamp": false
          },
          {
            "name": "Volatility 90D",
            "slug": "volatility-90d",
            "description": "The average daily price movement of the asset over the last 90 days",
            "is_timestamp": false
          },
          {
            "name": "Volatility 1Y",
            "slug": "volatility-1y",
            "description": "The average daily price movement of the asset over the last year",
            "is_timestamp": false
          },
          {
            "name": "Volatility 3Y",
            "slug": "volatility-3y",
            "description": "The average daily price movement of the asset over the last 3 years",
            "is_timestamp": false
          }
        ]
      }
    ]
  }
}
{
"data": "<unknown>",
"error": "<string>"
}
{
"data": "<unknown>",
"error": "<string>"
}
{
"data": "<unknown>",
"error": "<string>"
}
x402 Support: Supported. See the x402 guide.

Authorizations

X-Messari-API-Key
string
header
required

Response

Default response

data
object
required
error
string