Trade Pressure
curl --request GET \
--url https://api.amberdata.com/markets/spot/analytics/trade/pressure \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/spot/analytics/trade/pressure"
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.amberdata.com/markets/spot/analytics/trade/pressure', 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.amberdata.com/markets/spot/analytics/trade/pressure",
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.amberdata.com/markets/spot/analytics/trade/pressure"
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.amberdata.com/markets/spot/analytics/trade/pressure")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/spot/analytics/trade/pressure")
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{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"close": 83622.17,
"exchange": "gdax",
"high": 86491.4,
"low": 83592.77,
"netBuyTradeCount": 64529,
"netBuyVolumeCoin": 2.5356237300000544,
"netBuyVolumeUsd": 516634.4543056437,
"open": 84590.37,
"orderSizeCategoryUsd": "All",
"pair": "btc_usd",
"timestamp": "2025-04-15 00:00:00 000",
"totalVolumeCoin": 6461.770244209999,
"totalVolumeUsd": 549390273.3037565
},
{
"close": 83603.53,
"exchange": "gdax",
"high": 83622.52,
"low": 83593.72,
"netBuyTradeCount": -20,
"netBuyVolumeCoin": -2.2689633999999996,
"netBuyVolumeUsd": -189697.15606547246,
"open": 83610.81,
"orderSizeCategoryUsd": "All",
"pair": "btc_usd",
"timestamp": "2025-04-16 00:00:00 000",
"totalVolumeCoin": 5.332700320000002,
"totalVolumeUsd": 445841.5172556046
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Trade Analytics
Trade Pressure
This endpoint provides net trade data (buy aggressors minus sell aggressors) to help users identify which side of the market is more aggressive. Users can also filter by “orderSizeCategoryUsd” to analyze behavior across different market segments. Other details revolve around trade count.
GET
/
trade
/
pressure
Trade Pressure
curl --request GET \
--url https://api.amberdata.com/markets/spot/analytics/trade/pressure \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/spot/analytics/trade/pressure"
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.amberdata.com/markets/spot/analytics/trade/pressure', 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.amberdata.com/markets/spot/analytics/trade/pressure",
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.amberdata.com/markets/spot/analytics/trade/pressure"
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.amberdata.com/markets/spot/analytics/trade/pressure")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/spot/analytics/trade/pressure")
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{
"status": 200,
"title": "OK",
"description": "Successful request",
"payload": {
"data": [
{
"close": 83622.17,
"exchange": "gdax",
"high": 86491.4,
"low": 83592.77,
"netBuyTradeCount": 64529,
"netBuyVolumeCoin": 2.5356237300000544,
"netBuyVolumeUsd": 516634.4543056437,
"open": 84590.37,
"orderSizeCategoryUsd": "All",
"pair": "btc_usd",
"timestamp": "2025-04-15 00:00:00 000",
"totalVolumeCoin": 6461.770244209999,
"totalVolumeUsd": 549390273.3037565
},
{
"close": 83603.53,
"exchange": "gdax",
"high": 83622.52,
"low": 83593.72,
"netBuyTradeCount": -20,
"netBuyVolumeCoin": -2.2689633999999996,
"netBuyVolumeUsd": -189697.15606547246,
"open": 83610.81,
"orderSizeCategoryUsd": "All",
"pair": "btc_usd",
"timestamp": "2025-04-16 00:00:00 000",
"totalVolumeCoin": 5.332700320000002,
"totalVolumeUsd": 445841.5172556046
}
],
"metadata": {
"api-version": "2023-09-30"
}
}
}{}Query Parameters
Was this page helpful?