Markets
Stats for all markets
Volume, liquidity, usage and 24h price for every active market, each tagged with the market address and its base/quote token metadata. Rolling stats for a market, served from an in-memory snapshot (24h volume and usage refresh every 10 minutes; liquidity is live; price is the live 24h ticker). Token amounts are decimal strings in the market’s own units. USD figures are valued via a stablecoin-paired market for the quote token and are null when no such market exists.
GET
/
v1
/
markets
/
stats
Stats for all markets
curl --request GET \
--url https://api.archer.exchange/v1/markets/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/stats"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.archer.exchange/v1/markets/stats', 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.archer.exchange/v1/markets/stats",
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-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.archer.exchange/v1/markets/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.archer.exchange/v1/markets/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"baseToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"quoteToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"stats": {
"liquidity": {
"totalBase": "5000.000000000",
"totalQuote": "750000.000000",
"totalUsd": "1500000.00"
},
"price": {
"high24h": "152.50",
"lastPrice": "150.000000",
"low24h": "146.25",
"priceChange24h": "3.00",
"priceChangePercent24h": "2.04",
"timestamp": 1759900000000
},
"usage": {
"trades1h": 96,
"trades24h": 2310,
"users1h": 17,
"users24h": 142
},
"volume": {
"totalBaseVolume1h": "52.250000",
"totalBaseVolume24h": "1250.500000",
"totalQuoteVolume1h": "7837.500000",
"totalQuoteVolume24h": "187575.000000",
"totalVolume1h": "7837.50",
"totalVolume24h": "187575.00"
}
}
}
]{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}Authorizations
Stats for all markets
curl --request GET \
--url https://api.archer.exchange/v1/markets/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/stats"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.archer.exchange/v1/markets/stats', 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.archer.exchange/v1/markets/stats",
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-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.archer.exchange/v1/markets/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-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.archer.exchange/v1/markets/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"baseToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"market": "u8tnfCb1JSSghuNFquQ2beStYgAN1kmd1f1Lhxbaec4",
"quoteToken": {
"decimals": 9,
"logoUri": "<string>",
"mint": "So11111111111111111111111111111111111111112",
"name": "Wrapped SOL",
"symbol": "wSOL"
},
"stats": {
"liquidity": {
"totalBase": "5000.000000000",
"totalQuote": "750000.000000",
"totalUsd": "1500000.00"
},
"price": {
"high24h": "152.50",
"lastPrice": "150.000000",
"low24h": "146.25",
"priceChange24h": "3.00",
"priceChangePercent24h": "2.04",
"timestamp": 1759900000000
},
"usage": {
"trades1h": 96,
"trades24h": 2310,
"users1h": 17,
"users24h": 142
},
"volume": {
"totalBaseVolume1h": "52.250000",
"totalBaseVolume24h": "1250.500000",
"totalQuoteVolume1h": "7837.500000",
"totalQuoteVolume24h": "187575.000000",
"totalVolume1h": "7837.50",
"totalVolume24h": "187575.00"
}
}
}
]{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}