Skip to main content

Don't have an API key yet?

Sign-up to Moralis to get your free API key and start building today.

Get Your Free API Key

Get Wallet PnL Summary

GEThttps://deep-index.moralis.io/api/v2.2/wallets/:address/profitability/summary

Retrieves a summary of wallet profitability based on specified parameters including optional token addresses.

PATH PARAMS
addressstringrequired
The wallet address for which profitability summary is to be retrieved.
QUERY PARAMS
daysstring
Timeframe in days for the profitability summary. Options include 'all', '7', '30', '60', '90' default is 'all'.
chainstring
The chain to query
Responses
200Successful response with the profitability summary.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
API KEY
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2.2/wallets/0xcB1C1FdE09f811B294172696404e88E658659905/profitability/summary?chain=eth' \
--header 'accept: application/json' \
--header 'X-API-Key: YOUR_API_KEY'
Response Example
{
"total_count_of_trades": 1,
"total_trade_volume": "",
"total_realized_profit_usd": "",
"total_realized_profit_percentage": 1,
"total_buys": 1,
"total_sells": 1,
"total_sold_volume_usd": "",
"total_bought_volume_usd": ""
}