List DAT Metrics
curl --request GET \
--url https://api.messari.io/metrics/v2/protocols/dats/metrics \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v2/protocols/dats/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/protocols/dats/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/protocols/dats/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/protocols/dats/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/protocols/dats/metrics")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v2/protocols/dats/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": "holdings",
"granularities": [
"1d"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "AUM (Native)",
"slug": "aumNative",
"description": "Company's holdings of this asset in native units.",
"is_timestamp": false
},
{
"name": "AUM (USD)",
"slug": "aumUsd",
"description": "Company's holdings of this asset in USD.",
"is_timestamp": false
},
{
"name": "Purchases (Native)",
"slug": "purchasesNative",
"description": "Units of this asset purchased that day.",
"is_timestamp": false
}
]
},
{
"slug": "treasury",
"granularities": [
"1d"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Stock Price (USD)",
"slug": "price",
"description": "Latest stock price in USD.",
"is_timestamp": false
},
{
"name": "Volume (USD)",
"slug": "volumeUsd",
"description": "Dollar trading volume.",
"is_timestamp": false
},
{
"name": "Outstanding Shares",
"slug": "outstandingShares",
"description": "Shares currently issued and held by investors.",
"is_timestamp": false
},
{
"name": "Market Cap (USD)",
"slug": "marketCap",
"description": "Stock price times outstanding shares in USD.",
"is_timestamp": false
},
{
"name": "Enterprise Value (USD)",
"slug": "enterpriseValue",
"description": "Market cap plus debt minus cash in USD.",
"is_timestamp": false
},
{
"name": "Fully Diluted Shares",
"slug": "fullyDilutedShares",
"description": "All shares if options, warrants and convertibles are exercised.",
"is_timestamp": false
},
{
"name": "Fully Diluted Valuation (USD)",
"slug": "fullyDilutedValuation",
"description": "Stock price times fully diluted shares in USD.",
"is_timestamp": false
},
{
"name": "Fully Diluted Enterprise Value (USD)",
"slug": "fullyDilutedEnterpriseValue",
"description": "Enterprise value on a fully diluted share basis in USD.",
"is_timestamp": false
},
{
"name": "Cash (USD)",
"slug": "cash",
"description": "Cash and equivalents on the balance sheet in USD.",
"is_timestamp": false
},
{
"name": "Debt (USD)",
"slug": "debt",
"description": "Total debt on the balance sheet in USD.",
"is_timestamp": false
},
{
"name": "Preferred Market Cap (USD)",
"slug": "preferredMarketCap",
"description": "Market value of preferred stock in USD.",
"is_timestamp": false
},
{
"name": "NAV (USD)",
"slug": "nav",
"description": "Net asset value - crypto holdings at market value, net of liabilities, in USD.",
"is_timestamp": false
},
{
"name": "Outstanding mNAV",
"slug": "outstandingMnav",
"description": "Market cap divided by NAV - premium or discount to crypto NAV on outstanding shares.",
"is_timestamp": false
},
{
"name": "Fully Diluted mNAV",
"slug": "fullyDilutedMnav",
"description": "Fully diluted valuation divided by NAV.",
"is_timestamp": false
},
{
"name": "Outstanding EV mNAV",
"slug": "outstandingEvMnav",
"description": "Enterprise value divided by NAV on outstanding shares.",
"is_timestamp": false
},
{
"name": "Fully Diluted EV mNAV",
"slug": "fullyDilutedEvMnav",
"description": "Fully diluted enterprise value divided by NAV.",
"is_timestamp": false
}
]
}
]
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}DATs
List DAT Metrics
Returns the metric catalog for both digital asset treasury datasets in one response: treasury, at the company grain, and holdings, one series per company and held asset. Use the metric slugs here to read the point arrays the DAT time series endpoints return.
GET
/
metrics
/
v2
/
protocols
/
dats
/
metrics
List DAT Metrics
curl --request GET \
--url https://api.messari.io/metrics/v2/protocols/dats/metrics \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v2/protocols/dats/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/protocols/dats/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/protocols/dats/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/protocols/dats/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/protocols/dats/metrics")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v2/protocols/dats/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": "holdings",
"granularities": [
"1d"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "AUM (Native)",
"slug": "aumNative",
"description": "Company's holdings of this asset in native units.",
"is_timestamp": false
},
{
"name": "AUM (USD)",
"slug": "aumUsd",
"description": "Company's holdings of this asset in USD.",
"is_timestamp": false
},
{
"name": "Purchases (Native)",
"slug": "purchasesNative",
"description": "Units of this asset purchased that day.",
"is_timestamp": false
}
]
},
{
"slug": "treasury",
"granularities": [
"1d"
],
"metrics": [
{
"name": "Timestamp",
"slug": "time",
"description": "Timestamp of the data point.",
"is_timestamp": true
},
{
"name": "Stock Price (USD)",
"slug": "price",
"description": "Latest stock price in USD.",
"is_timestamp": false
},
{
"name": "Volume (USD)",
"slug": "volumeUsd",
"description": "Dollar trading volume.",
"is_timestamp": false
},
{
"name": "Outstanding Shares",
"slug": "outstandingShares",
"description": "Shares currently issued and held by investors.",
"is_timestamp": false
},
{
"name": "Market Cap (USD)",
"slug": "marketCap",
"description": "Stock price times outstanding shares in USD.",
"is_timestamp": false
},
{
"name": "Enterprise Value (USD)",
"slug": "enterpriseValue",
"description": "Market cap plus debt minus cash in USD.",
"is_timestamp": false
},
{
"name": "Fully Diluted Shares",
"slug": "fullyDilutedShares",
"description": "All shares if options, warrants and convertibles are exercised.",
"is_timestamp": false
},
{
"name": "Fully Diluted Valuation (USD)",
"slug": "fullyDilutedValuation",
"description": "Stock price times fully diluted shares in USD.",
"is_timestamp": false
},
{
"name": "Fully Diluted Enterprise Value (USD)",
"slug": "fullyDilutedEnterpriseValue",
"description": "Enterprise value on a fully diluted share basis in USD.",
"is_timestamp": false
},
{
"name": "Cash (USD)",
"slug": "cash",
"description": "Cash and equivalents on the balance sheet in USD.",
"is_timestamp": false
},
{
"name": "Debt (USD)",
"slug": "debt",
"description": "Total debt on the balance sheet in USD.",
"is_timestamp": false
},
{
"name": "Preferred Market Cap (USD)",
"slug": "preferredMarketCap",
"description": "Market value of preferred stock in USD.",
"is_timestamp": false
},
{
"name": "NAV (USD)",
"slug": "nav",
"description": "Net asset value - crypto holdings at market value, net of liabilities, in USD.",
"is_timestamp": false
},
{
"name": "Outstanding mNAV",
"slug": "outstandingMnav",
"description": "Market cap divided by NAV - premium or discount to crypto NAV on outstanding shares.",
"is_timestamp": false
},
{
"name": "Fully Diluted mNAV",
"slug": "fullyDilutedMnav",
"description": "Fully diluted valuation divided by NAV.",
"is_timestamp": false
},
{
"name": "Outstanding EV mNAV",
"slug": "outstandingEvMnav",
"description": "Enterprise value divided by NAV on outstanding shares.",
"is_timestamp": false
},
{
"name": "Fully Diluted EV mNAV",
"slug": "fullyDilutedEvMnav",
"description": "Fully diluted enterprise value divided by NAV.",
"is_timestamp": false
}
]
}
]
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}⌘I

