Protocol series
curl --request GET \
--url https://apimonaco.xyz/api/v1/analytics/protocol/seriesimport requests
url = "https://apimonaco.xyz/api/v1/analytics/protocol/series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/analytics/protocol/series', 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://apimonaco.xyz/api/v1/analytics/protocol/series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://apimonaco.xyz/api/v1/analytics/protocol/series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apimonaco.xyz/api/v1/analytics/protocol/series")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/analytics/protocol/series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"window": {
"startTime": 1762041600000,
"endTime": 1762128000000,
"granularity": "hour"
},
"points": [
{
"bucketStart": 1762038000000,
"volumeUsd": "52000",
"spotVolumeUsd": "12000",
"perpVolumeUsd": "40000",
"tradesCount": 180,
"protocolFeesUsd": "26",
"activeTakers": 41,
"newTraders": 3,
"tvlUsd": "536172600",
"depositsUsd": "52000",
"withdrawalsUsd": "3000",
"netFlowUsd": "49000",
"volumeBySource": {
"orderBookVolumeUsd": "1180000.5",
"rfqVolumeUsd": "70000"
},
"newAccounts": 4
}
]
}Analytics
Protocol series
Protocol figures per bucket over a window, oldest first.
GET
/
api
/
v1
/
analytics
/
protocol
/
series
Protocol series
curl --request GET \
--url https://apimonaco.xyz/api/v1/analytics/protocol/seriesimport requests
url = "https://apimonaco.xyz/api/v1/analytics/protocol/series"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/analytics/protocol/series', 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://apimonaco.xyz/api/v1/analytics/protocol/series",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://apimonaco.xyz/api/v1/analytics/protocol/series"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apimonaco.xyz/api/v1/analytics/protocol/series")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/analytics/protocol/series")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"window": {
"startTime": 1762041600000,
"endTime": 1762128000000,
"granularity": "hour"
},
"points": [
{
"bucketStart": 1762038000000,
"volumeUsd": "52000",
"spotVolumeUsd": "12000",
"perpVolumeUsd": "40000",
"tradesCount": 180,
"protocolFeesUsd": "26",
"activeTakers": 41,
"newTraders": 3,
"tvlUsd": "536172600",
"depositsUsd": "52000",
"withdrawalsUsd": "3000",
"netFlowUsd": "49000",
"volumeBySource": {
"orderBookVolumeUsd": "1180000.5",
"rfqVolumeUsd": "70000"
},
"newAccounts": 4
}
]
}Query Parameters
Window: the last 24 hours, 7 days or 30 days before endTime, all time, or custom (startTime to endTime)
Available options:
24h, 7d, 30d, all, custom Minimum string length:
1Custom window start as Unix milliseconds. Required with window=custom and rejected otherwise.
Required range:
0 <= x <= 4102444800000Window end as Unix milliseconds; defaults to now. Buckets starting at or before it count. A window counted in hours (2.5 days or shorter) must start within the last 90 days.
Required range:
0 <= x <= 4102444800000Was this page helpful?

