cURL
curl -X GET "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day", { headers: { "Authorization": "Bearer <YOUR_API_KEY>"} })
.then(response => response.json())
.then(data => console.log(data))require('axios')
.get("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day", { headers: { Authorization: 'Bearer <YOUR_API_KEY>' } })
.then(response => console.log(response))require 'net/http'
uri = URI("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer <YOUR_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.bodyimport requests
headers = {'Authorization': 'Bearer <YOUR_API_KEY>'}
url = "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day"
print(requests.get(url, headers=headers).json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cryptoquant.com/v2/indicator/top-indicator/retail-activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cryptoquant.com/v2/indicator/top-indicator/retail-activity")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 123,
"message": "<string>"
},
"result": {
"window": "<string>",
"data": [
{
"date": "<string>",
"asset": "<string>",
"price_usd": 123,
"gap_macd_absolute": 123,
"gap_macd_percentage": 123,
"macd_outlier_percentage": "<string>"
}
]
}
}Top Indicators
Retail Activity
Retail activity through trading frequency surge — how far the daily number of trades is running above its own one-year average.
GET
/
indicator
/
top-indicator
/
retail-activity
cURL
curl -X GET "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day", { headers: { "Authorization": "Bearer <YOUR_API_KEY>"} })
.then(response => response.json())
.then(data => console.log(data))require('axios')
.get("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day", { headers: { Authorization: 'Bearer <YOUR_API_KEY>' } })
.then(response => console.log(response))require 'net/http'
uri = URI("https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day")
req = Net::HTTP::Get.new(uri)
req["Authorization"] = "Bearer <YOUR_API_KEY>"
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
puts res.bodyimport requests
headers = {'Authorization': 'Bearer <YOUR_API_KEY>'}
url = "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity?asset=btc&window=day"
print(requests.get(url, headers=headers).json())<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cryptoquant.com/v2/indicator/top-indicator/retail-activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cryptoquant.com/v2/indicator/top-indicator/retail-activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cryptoquant.com/v2/indicator/top-indicator/retail-activity")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 123,
"message": "<string>"
},
"result": {
"window": "<string>",
"data": [
{
"date": "<string>",
"asset": "<string>",
"price_usd": 123,
"gap_macd_absolute": 123,
"gap_macd_percentage": 123,
"macd_outlier_percentage": "<string>"
}
]
}
}What it measures
Retail activity through trading frequency surge — how far the daily number of trades is running above its own one-year average. The daily number of trades (summed across all exchanges) is compared with its average over the trailing 12 months. That gap, in absolute terms and as a percentage of the one-year average, is smoothed with a 30-day and a 365-day moving average; the endpoint returns the difference between the two (MA30 − MA365, a MACD-style reading). A rising value means trading frequency is accelerating against its long-run level. The source data is aggregated across exchanges: spot OHLCV and taker volume formarket=spot, perpetual-contract OHLCV and taker volume for market=futures. Values are daily, recomputed every day at about 01:10 UTC over the full history; the latest row is the previous UTC day.
Assets and windows
| Market | Assets | Windows |
|---|---|---|
spot (default) | 448 assets, e.g. btc, eth, sol, xrp, bnb, doge | day |
futures | 356 assets, e.g. btc, eth, sol, xrp, bnb, doge | day |
asset as a lowercase symbol; several assets can be requested at once, comma-separated (asset=btc,eth). The supported assets differ between the two markets: an asset that is not supported for the requested market returns 400 (Unsupported asset for spot: x). The full lists are returned by /v2/discovery/endpoints. window accepts only day; any other value returns 400. limit applies per asset.
Each call costs 20 credits.
Response fields
Rows are returned underresult.data, one per asset per day.
| Field | Type | Description |
|---|---|---|
date | string | Day, YYYY-MM-DD (UTC). |
asset | string | Asset symbol, lowercase. |
price_usd | number | Price in USD: the median, across exchanges, of the daily close for USD-denominated quote currencies (USD, USDT, USDC, …). |
gap_macd_absolute | number | Trade-count gap (daily number of trades minus the trailing 12-month average) — 30-day moving average minus 365-day moving average. In number of trades. |
gap_macd_percentage | number | Trade-count gap as a percentage of the trailing 12-month average — 30-day moving average minus 365-day moving average. In percentage points. The label is based on this value. |
macd_outlier_percentage | string | Label derived from gap_macd_percentage. See the table below. |
Labels
macd_outlier_percentage is a label. The label is assigned from gap_macd_percentage:
| Label | Condition |
|---|---|
Too Many Retail | gap_macd_percentage ≥ 100 |
Many Retail | 70 ≤ gap_macd_percentage < 100 |
Few Retail | 50 ≤ gap_macd_percentage < 70 |
Neutral | gap_macd_percentage < 50 |