Get the wallet-level profitability summary across multiple chains.
curl --request GET \
--url https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary"
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary', 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.moralis.com/v1/wallets/{walletAddress}/pnl/summary",
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary"
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary")
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{
"meta": {
"syncedAt": {
"0x1": 1710000000,
"solana-mainnet": "latest"
},
"unsupportedChains": [
"0x89"
],
"failedChains": [
"0x89"
]
},
"totalTokensBought": 123,
"totalTokensSold": 123,
"totalBoughtVolumeUsd": 123,
"totalSoldVolumeUsd": 123,
"totalTrades": 123,
"totalBuys": 123,
"totalSells": 123,
"realizedProfitUsd": 123,
"realizedProfitPercentage": 123,
"unrealizedProfitUsd": 123,
"unrealizedProfitPercentage": 123,
"totalPnlUsd": 123,
"totalPnlPercentage": 123,
"roi": 123,
"winRate": 0.6,
"tokensTraded": 123
}PnL API
Wallet PnL Summary
Aggregated wallet-level profitability totals across all queried chains: PnL, volumes, trade counts, and win rate.
GET
/
v1
/
wallets
/
{walletAddress}
/
pnl
/
summary
Get the wallet-level profitability summary across multiple chains.
curl --request GET \
--url https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary"
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary', 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.moralis.com/v1/wallets/{walletAddress}/pnl/summary",
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary"
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.moralis.com/v1/wallets/{walletAddress}/pnl/summary")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moralis.com/v1/wallets/{walletAddress}/pnl/summary")
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{
"meta": {
"syncedAt": {
"0x1": 1710000000,
"solana-mainnet": "latest"
},
"unsupportedChains": [
"0x89"
],
"failedChains": [
"0x89"
]
},
"totalTokensBought": 123,
"totalTokensSold": 123,
"totalBoughtVolumeUsd": 123,
"totalSoldVolumeUsd": 123,
"totalTrades": 123,
"totalBuys": 123,
"totalSells": 123,
"realizedProfitUsd": 123,
"realizedProfitPercentage": 123,
"unrealizedProfitUsd": 123,
"unrealizedProfitPercentage": 123,
"totalPnlUsd": 123,
"totalPnlPercentage": 123,
"roi": 123,
"winRate": 0.6,
"tokensTraded": 123
}This is the multi-chain successor to the legacy Deep Index Wallet PnL Summary endpoint. Pass multiple
chains (or mainnets) to get aggregated wallet-level totals across chains in a single request.Authorizations
Path Parameters
The address
Query Parameters
Chains to query
Available options:
0x1, ethereum, 0x171, pulse, 0x2105, base, 0x38, binance, 0x89, polygon, 0xa, optimism, 0xa86a, avalanche, all, mainnets Required range:
x >= 0Required range:
x >= 0Response
200 - application/json
Show child attributes
Show child attributes
Pinned field name: totalSoldVolumeUsd.
Fraction of tokens with totalPnlUsd > 0. 0 for empty wallets.
Example:
0.6
Distinct tokens that contributed to the summary.

