Wallet PnL
curl --request GET \
--url https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnlimport requests
url = "https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl', 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/wallets/{wallet}/pnl",
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/wallets/{wallet}/pnl"
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/wallets/{wallet}/pnl")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl")
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{
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"totals": {
"realizedPnl": "1250.5",
"fundingPnl": "-12.25",
"netPnl": "1238.25"
},
"historyStartsAt": 1760486400000,
"dataThrough": 1762041600000,
"coverage": "complete",
"bucketInterval": "1d",
"points": [
{
"bucketStart": 1760486400000,
"realizedPnl": "1250.5",
"fundingPnl": "-12.25",
"netPnl": "1238.25"
}
]
}Analytics
Wallet PnL
One wallet’s cumulative realized PnL, over every application it trades under: realized perps and spot PnL and funding, net of every fee the wallet was charged. All time, with a daily cumulative series. No fee figure is published.
GET
/
api
/
v1
/
analytics
/
wallets
/
{wallet}
/
pnl
Wallet PnL
curl --request GET \
--url https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnlimport requests
url = "https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl', 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/wallets/{wallet}/pnl",
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/wallets/{wallet}/pnl"
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/wallets/{wallet}/pnl")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/analytics/wallets/{wallet}/pnl")
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{
"wallet": "0x1234567890abcdef1234567890abcdef12345678",
"totals": {
"realizedPnl": "1250.5",
"fundingPnl": "-12.25",
"netPnl": "1238.25"
},
"historyStartsAt": 1760486400000,
"dataThrough": 1762041600000,
"coverage": "complete",
"bucketInterval": "1d",
"points": [
{
"bucketStart": 1760486400000,
"realizedPnl": "1250.5",
"fundingPnl": "-12.25",
"netPnl": "1238.25"
}
]
}Response
OK
none: no PnL history for the wallet (totals null, no points). partial: the wallet traded before its history starts (or traded under an application with no history), so totals and points leave that trading out and are not all-time. complete: the history covers every fill of the wallet, so totals are all-time.
Available options:
none, partial, complete Example:
"complete"
Was this page helpful?

