curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume', 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.mainnet.aptoslabs.com/decibel/api/v1/account_volume",
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.mainnet.aptoslabs.com/decibel/api/v1/account_volume"
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.mainnet.aptoslabs.com/decibel/api/v1/account_volume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account": "<string>",
"end_date": "<string>",
"maker_volume": "<string>",
"start_date": "<string>",
"taker_volume": "<string>",
"volume": "<string>"
}Get aggregate account volume over a date range
Returns the account’s total, maker, and taker volume (in whole USD) for the requested
inclusive date range. When start_date and end_date are omitted the range defaults
to the past 30 days (today() - 29 .. today(), UTC).
Both start_date and end_date must be supplied together (YYYY-MM-DD format).
Volume data has up to 5-minute delay (MV refresh interval).
curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume', 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.mainnet.aptoslabs.com/decibel/api/v1/account_volume",
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.mainnet.aptoslabs.com/decibel/api/v1/account_volume"
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.mainnet.aptoslabs.com/decibel/api/v1/account_volume")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/account_volume")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"account": "<string>",
"end_date": "<string>",
"maker_volume": "<string>",
"start_date": "<string>",
"taker_volume": "<string>",
"volume": "<string>"
}Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Query Parameters
User account address
Optional inclusive start date (YYYY-MM-DD, UTC).
Must be provided together with end_date.
Defaults to today() - 29 (UTC) when both are omitted.
Optional inclusive end date (YYYY-MM-DD, UTC).
Must be provided together with start_date.
Defaults to today (UTC) when both are omitted.
Response
Account volume retrieved
Response for GET /api/v1/account_volume?account=<address>&start_date=<YYYY-MM-DD>&end_date=<YYYY-MM-DD>.
Returns the account's aggregate trading volume (total, maker, taker) in whole USD
for the requested inclusive date range.
When start_date/end_date are omitted the range defaults to the past 30 days
(today() - 29 .. today() inclusive, UTC).
Volume data has up to 5-minute delay (MV refresh interval).
The queried account address
Inclusive end date of the range used (YYYY-MM-DD, UTC)
Maker-side volume across the range (USD, whole-dollar integer string)
Inclusive start date of the range used (YYYY-MM-DD, UTC)
Taker-side volume across the range (USD, whole-dollar integer string)
Total volume across the range (USD, whole-dollar integer string)

