Get market stats
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, as on GET /v1/markets/{address}/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. Supersedes GET /v1/markets/{address}/volume.
curl --request GET \
--url https://api.archer.exchange/v1/markets/{address}/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/{address}/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/{address}/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/{address}/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/{address}/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/{address}/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/{address}/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{
"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": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}Authorizations
Path Parameters
Base58 market address.
Response
Market stats.
Capital deposited across all maker books on the market (free + locked).
Show child attributes
Show child attributes
Rolling 24h price figures, the same as the price fields of GET /v1/markets/{address}/ticker. Prices are human decimals.
Show child attributes
Show child attributes
Trade and distinct-trader counts over rolling windows.
Show child attributes
Show child attributes
Rolling 1h and 24h swap volume.
Show child attributes
Show child attributes
curl --request GET \
--url https://api.archer.exchange/v1/markets/{address}/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.archer.exchange/v1/markets/{address}/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/{address}/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/{address}/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/{address}/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/{address}/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.archer.exchange/v1/markets/{address}/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{
"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": "INVALID_PARAMS",
"message": "Invalid market address: xyz"
}{
"error": "MARKET_NOT_FOUND",
"message": "Market not found: 5Ggx...abc"
}{
"error": "RATE_LIMITED",
"message": "Too many requests. Please slow down."
}{
"error": "INTERNAL_ERROR",
"message": "Internal error: ..."
}