cURL
curl -X GET "https://api.cryptoquant.com/v2/indicator/top-indicator/avg-order-size?asset=btc&window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/indicator/top-indicator/avg-order-size?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/avg-order-size?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/avg-order-size?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/avg-order-size?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/avg-order-size",
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/avg-order-size"
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/avg-order-size")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 123,
"message": "<string>"
},
"result": {
"window": "<string>",
"data": [
{
"date": "<string>",
"asset": "<string>",
"price_usd": 123,
"avg_trade_amount_ma_100": 123,
"order_type": "<string>"
}
]
}
}Top Indicators
Average Order Size
Average order size — the average USD value of a single trade, tracked as a moving average.
GET
/
indicator
/
top-indicator
/
avg-order-size
cURL
curl -X GET "https://api.cryptoquant.com/v2/indicator/top-indicator/avg-order-size?asset=btc&window=day" \
-H "Authorization: Bearer <YOUR_API_KEY>"fetch("https://api.cryptoquant.com/v2/indicator/top-indicator/avg-order-size?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/avg-order-size?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/avg-order-size?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/avg-order-size?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/avg-order-size",
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/avg-order-size"
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/avg-order-size")
.header("Authorization", "Bearer <token>")
.asString();{
"status": {
"code": 123,
"message": "<string>"
},
"result": {
"window": "<string>",
"data": [
{
"date": "<string>",
"asset": "<string>",
"price_usd": 123,
"avg_trade_amount_ma_100": 123,
"order_type": "<string>"
}
]
}
}What it measures
Average order size — the average USD value of a single trade, tracked as a moving average. For each day, the average trade size in USD is the traded volume (valued atprice_usd) divided by the number of trades, summed across all exchanges. avg_trade_amount_ma_100 is its 100-day moving average. The label compares the 30-day and the 100-day moving averages of that daily series (MA30 − MA100, in USD).
The source data is aggregated across exchanges: spot OHLCV and taker volume for market=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, …). |
avg_trade_amount_ma_100 | number | Average USD value per trade, 100-day moving average. |
order_type | string | Label derived from the difference between the 30-day and 100-day moving averages of the average trade size (MA30 − MA100, in USD). See the table below. |
Labels
order_type is a label. The label is assigned from d = MA30 − MA100 of the average trade size (USD):
| Label | Condition |
|---|---|
Small Whale Orders | d > 299 |
Normal | 0 ≤ d ≤ 299 |
Big Whale Orders | −200 ≤ d < 0 |
Retail Orders | d < −200 |