curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity"
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/referrals/activity', 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/referrals/activity",
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/referrals/activity"
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/referrals/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity")
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{
"clients": [
{
"client": "<string>",
"commission_usd": 123,
"level": 1,
"maker_volume_usd": 123,
"sub_client_count": 1,
"sub_clients": [
{
"client": "<string>",
"commission_usd": 123,
"maker_volume_usd": 123,
"taker_volume_usd": 123,
"top_market": "<string>",
"trades": 1
}
],
"taker_volume_usd": 123,
"top_market": "<string>",
"traded": true,
"trades": 1
}
],
"referrer_account": "<string>",
"summary": [
{
"clients": 1,
"commission_usd": 123,
"level": 1,
"maker_volume_usd": 123,
"taker_volume_usd": 123,
"trades": 1
}
],
"total_count": 1
}Get trading activity of a referrer's referred clients
Per-level window totals plus a page of direct (L1) referrals, each carrying the L2 clients it referred. Carries no commission figures: the accrual ledger those would come from does not exist yet.
curl --request GET \
--url https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity"
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/referrals/activity', 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/referrals/activity",
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/referrals/activity"
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/referrals/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/activity")
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{
"clients": [
{
"client": "<string>",
"commission_usd": 123,
"level": 1,
"maker_volume_usd": 123,
"sub_client_count": 1,
"sub_clients": [
{
"client": "<string>",
"commission_usd": 123,
"maker_volume_usd": 123,
"taker_volume_usd": 123,
"top_market": "<string>",
"trades": 1
}
],
"taker_volume_usd": 123,
"top_market": "<string>",
"traded": true,
"trades": 1
}
],
"referrer_account": "<string>",
"summary": [
{
"clients": 1,
"commission_usd": 123,
"level": 1,
"maker_volume_usd": 123,
"taker_volume_usd": 123,
"trades": 1
}
],
"total_count": 1
}Authorizations
Bearer token from Geomi. See Authentication for setup instructions.
Query Parameters
The referrer's wallet address (not a subaccount address)
Trailing UTC days to cover. Defaults to 14, clamped to 90.
x >= 0Direct (L1) clients per page. Defaults to 25, clamped to 200.
x >= 0Direct (L1) clients to skip. Clamped to 10000.
x >= 0Response
Referral activity summary and client page
Referral activity: per-level totals plus a page of direct referrals.
A page of L1 clients, each carrying its own L2s
Show child attributes
Show child attributes
Levels that traded in the window, level 1 first
Show child attributes
Show child attributes
L1 rows the window holds, for pagination. Counts parents, not clients: an L1 that only appears because its L2s traded still occupies a row.
x >= 0
