curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes"
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/derivatives/analytics/futures-perpetuals/volumes', 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/derivatives/analytics/futures-perpetuals/volumes",
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/derivatives/analytics/futures-perpetuals/volumes"
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/derivatives/analytics/futures-perpetuals/volumes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes")
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": [
{
"timestamp": 1706659200000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "370916.7",
"totalDailyVolumeMilUSD": "15800.9",
"totalDailyVolumeNative": "370916.7"
},
{
"timestamp": 1706659200000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "1128347366.9",
"totalDailyVolumeMilUSD": "421.1",
"totalDailyVolumeNative": "9901.8"
},
{
"timestamp": 1706659200000,
"exchange": "bybit",
"underlying": "BTC",
"totalDailyVolume": "168972.8",
"totalDailyVolumeMilUSD": "7196.2",
"totalDailyVolumeNative": "168972.8"
},
{
"timestamp": 1706659200000,
"exchange": "deribit",
"underlying": "BTC",
"totalDailyVolume": "13917.3",
"totalDailyVolumeMilUSD": "593.7",
"totalDailyVolumeNative": "13917.3"
},
{
"timestamp": 1706659200000,
"exchange": "ftxus",
"underlying": "BTC",
"totalDailyVolume": null,
"totalDailyVolumeMilUSD": null,
"totalDailyVolumeNative": null
},
{
"timestamp": 1706659200000,
"exchange": "huobi",
"underlying": "BTC",
"totalDailyVolume": "15451.3",
"totalDailyVolumeMilUSD": "658.8",
"totalDailyVolumeNative": "15451.3"
},
{
"timestamp": 1706659200000,
"exchange": "kraken",
"underlying": "BTC",
"totalDailyVolume": "3908651.8",
"totalDailyVolumeMilUSD": "174.9",
"totalDailyVolumeNative": "4107.2"
},
{
"timestamp": 1706659200000,
"exchange": "okex",
"underlying": "BTC",
"totalDailyVolume": "40064594.0",
"totalDailyVolumeMilUSD": "6700.6",
"totalDailyVolumeNative": "157175.2"
},
{
"timestamp": 1706572800000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "301377.0",
"totalDailyVolumeMilUSD": "12927.0",
"totalDailyVolumeNative": "301377.0"
},
{
"timestamp": 1706572800000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "1052392849.8",
"totalDailyVolumeMilUSD": "400.2",
"totalDailyVolumeNative": "9332.4"
},
{
"timestamp": 1706572800000,
"exchange": "bybit",
"underlying": "BTC",
"totalDailyVolume": "136513.9",
"totalDailyVolumeMilUSD": "5853.9",
"totalDailyVolumeNative": "136513.9"
},
{
"timestamp": 1706572800000,
"exchange": "deribit",
"underlying": "BTC",
"totalDailyVolume": "12887.8",
"totalDailyVolumeMilUSD": "554.2",
"totalDailyVolumeNative": "12887.8"
},
{
"timestamp": 1706572800000,
"exchange": "ftxus",
"underlying": "BTC",
"totalDailyVolume": null,
"totalDailyVolumeMilUSD": null,
"totalDailyVolumeNative": null
},
{
"timestamp": 1706572800000,
"exchange": "huobi",
"underlying": "BTC",
"totalDailyVolume": "12169.3",
"totalDailyVolumeMilUSD": "522.3",
"totalDailyVolumeNative": "12169.3"
},
{
"timestamp": 1706572800000,
"exchange": "kraken",
"underlying": "BTC",
"totalDailyVolume": "6986109.9",
"totalDailyVolumeMilUSD": "186.8",
"totalDailyVolumeNative": "4352.7"
},
{
"timestamp": 1706572800000,
"exchange": "okex",
"underlying": "BTC",
"totalDailyVolume": "32367069.0",
"totalDailyVolumeMilUSD": "5660.8",
"totalDailyVolumeNative": "131876.6"
},
{
"timestamp": 1706486400000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "290724.5",
"totalDailyVolumeMilUSD": "12567.6",
"totalDailyVolumeNative": "290724.5"
},
{
"timestamp": 1706486400000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "854470564.6",
"totalDailyVolumeMilUSD": "262.2",
"totalDailyVolumeNative": "6127.6"
}
]
}
}{}Volumes
This endpoint returns the rolling 24h volume for both futures and perpetuals of the underlying asset. The endpoint returns the USD volume in millions of dollars and the volume in units of underlying coins.
curl --request GET \
--url https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes \
--header 'x-api-key: <api-key>'import requests
url = "https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes"
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/derivatives/analytics/futures-perpetuals/volumes', 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/derivatives/analytics/futures-perpetuals/volumes",
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/derivatives/analytics/futures-perpetuals/volumes"
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/derivatives/analytics/futures-perpetuals/volumes")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/volumes")
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": [
{
"timestamp": 1706659200000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "370916.7",
"totalDailyVolumeMilUSD": "15800.9",
"totalDailyVolumeNative": "370916.7"
},
{
"timestamp": 1706659200000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "1128347366.9",
"totalDailyVolumeMilUSD": "421.1",
"totalDailyVolumeNative": "9901.8"
},
{
"timestamp": 1706659200000,
"exchange": "bybit",
"underlying": "BTC",
"totalDailyVolume": "168972.8",
"totalDailyVolumeMilUSD": "7196.2",
"totalDailyVolumeNative": "168972.8"
},
{
"timestamp": 1706659200000,
"exchange": "deribit",
"underlying": "BTC",
"totalDailyVolume": "13917.3",
"totalDailyVolumeMilUSD": "593.7",
"totalDailyVolumeNative": "13917.3"
},
{
"timestamp": 1706659200000,
"exchange": "ftxus",
"underlying": "BTC",
"totalDailyVolume": null,
"totalDailyVolumeMilUSD": null,
"totalDailyVolumeNative": null
},
{
"timestamp": 1706659200000,
"exchange": "huobi",
"underlying": "BTC",
"totalDailyVolume": "15451.3",
"totalDailyVolumeMilUSD": "658.8",
"totalDailyVolumeNative": "15451.3"
},
{
"timestamp": 1706659200000,
"exchange": "kraken",
"underlying": "BTC",
"totalDailyVolume": "3908651.8",
"totalDailyVolumeMilUSD": "174.9",
"totalDailyVolumeNative": "4107.2"
},
{
"timestamp": 1706659200000,
"exchange": "okex",
"underlying": "BTC",
"totalDailyVolume": "40064594.0",
"totalDailyVolumeMilUSD": "6700.6",
"totalDailyVolumeNative": "157175.2"
},
{
"timestamp": 1706572800000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "301377.0",
"totalDailyVolumeMilUSD": "12927.0",
"totalDailyVolumeNative": "301377.0"
},
{
"timestamp": 1706572800000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "1052392849.8",
"totalDailyVolumeMilUSD": "400.2",
"totalDailyVolumeNative": "9332.4"
},
{
"timestamp": 1706572800000,
"exchange": "bybit",
"underlying": "BTC",
"totalDailyVolume": "136513.9",
"totalDailyVolumeMilUSD": "5853.9",
"totalDailyVolumeNative": "136513.9"
},
{
"timestamp": 1706572800000,
"exchange": "deribit",
"underlying": "BTC",
"totalDailyVolume": "12887.8",
"totalDailyVolumeMilUSD": "554.2",
"totalDailyVolumeNative": "12887.8"
},
{
"timestamp": 1706572800000,
"exchange": "ftxus",
"underlying": "BTC",
"totalDailyVolume": null,
"totalDailyVolumeMilUSD": null,
"totalDailyVolumeNative": null
},
{
"timestamp": 1706572800000,
"exchange": "huobi",
"underlying": "BTC",
"totalDailyVolume": "12169.3",
"totalDailyVolumeMilUSD": "522.3",
"totalDailyVolumeNative": "12169.3"
},
{
"timestamp": 1706572800000,
"exchange": "kraken",
"underlying": "BTC",
"totalDailyVolume": "6986109.9",
"totalDailyVolumeMilUSD": "186.8",
"totalDailyVolumeNative": "4352.7"
},
{
"timestamp": 1706572800000,
"exchange": "okex",
"underlying": "BTC",
"totalDailyVolume": "32367069.0",
"totalDailyVolumeMilUSD": "5660.8",
"totalDailyVolumeNative": "131876.6"
},
{
"timestamp": 1706486400000,
"exchange": "binance",
"underlying": "BTC",
"totalDailyVolume": "290724.5",
"totalDailyVolumeMilUSD": "12567.6",
"totalDailyVolumeNative": "290724.5"
},
{
"timestamp": 1706486400000,
"exchange": "bitmex",
"underlying": "BTC",
"totalDailyVolume": "854470564.6",
"totalDailyVolumeMilUSD": "262.2",
"totalDailyVolumeNative": "6127.6"
}
]
}
}{}Authorizations
Query Parameters
[Required] The underlying currency for which there are futures contracts/instruments.
[Examples] BTC | ETH
[Required] Payload only includes data after this date (inclusive).
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Required] Payload only includes data before this date (exclusive).
[Formats] seconds | milliseconds | iso8601
[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00
[Optional] Time format of the timestamps in the return payload.
[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable
Was this page helpful?