Get exchange
curl --request GET \
--url https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier} \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier}"
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/v1/exchanges/{exchangeIdentifier}', 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/v1/exchanges/{exchangeIdentifier}",
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/v1/exchanges/{exchangeIdentifier}"
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/v1/exchanges/{exchangeIdentifier}")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier}")
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": {
"id": "d8b0ea44-1963-451e-ac37-aead4ba3b4c7",
"name": "Binance",
"slug": "binance",
"type": "centralized",
"yearEstablished": 2017,
"region": "Americas",
"country": "Cayman Islands",
"typeRank30D": 1,
"globalRank30D": 1,
"relatedExchangeIDs": [
"86f92f67-7968-4c8d-8cb6-a5b1c80ef185",
"eabe49f0-c1a3-4166-b773-780fe809ac93",
"b196e8a3-34cc-40bd-a6cb-bb8283958021",
"86f92f67-7968-4c8d-8cb6-a5b1c80ef185",
"174e0471-1033-4e12-97d5-9f234ed21142"
],
"metrics": {
"volume24Hour": 22972526466.775723,
"trades24Hour": 63566819,
"assetsCount": 613,
"marketsCount": 3036
}
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}Exchanges (included with Enterprise)
Get Exchange
Retrieve a specific exchange
GET
/
metrics
/
v1
/
exchanges
/
{exchangeIdentifier}
Get exchange
curl --request GET \
--url https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier} \
--header 'X-Messari-API-Key: <api-key>'import requests
url = "https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier}"
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/v1/exchanges/{exchangeIdentifier}', 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/v1/exchanges/{exchangeIdentifier}",
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/v1/exchanges/{exchangeIdentifier}"
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/v1/exchanges/{exchangeIdentifier}")
.header("X-Messari-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.messari.io/metrics/v1/exchanges/{exchangeIdentifier}")
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": {
"id": "d8b0ea44-1963-451e-ac37-aead4ba3b4c7",
"name": "Binance",
"slug": "binance",
"type": "centralized",
"yearEstablished": 2017,
"region": "Americas",
"country": "Cayman Islands",
"typeRank30D": 1,
"globalRank30D": 1,
"relatedExchangeIDs": [
"86f92f67-7968-4c8d-8cb6-a5b1c80ef185",
"eabe49f0-c1a3-4166-b773-780fe809ac93",
"b196e8a3-34cc-40bd-a6cb-bb8283958021",
"86f92f67-7968-4c8d-8cb6-a5b1c80ef185",
"174e0471-1033-4e12-97d5-9f234ed21142"
],
"metrics": {
"volume24Hour": 22972526466.775723,
"trades24Hour": 63566819,
"assetsCount": 613,
"marketsCount": 3036
}
}
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}{
"data": "<unknown>",
"error": "<string>"
}x402 Support: Supported.
See the x402 guide.
⌘I

