Skip to main content
GET
/
pnl
/
{wallet}
Get Wallet PnL
curl --request GET \
  --url https://data.solanatracker.io/pnl/{wallet} \
  --header 'x-api-key: <api-key>'
{
  "tokens": {
    "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263": {
      "holding": 34587.83040999995,
      "held": 569619.4014500001,
      "sold": 569619.4014500001,
      "sold_usd": 8.848779535217,
      "realized": 4.101715619389,
      "unrealized": -0.698268859628,
      "total": 3.403446759761,
      "total_sold": 8.848779535217,
      "total_invested": 5.919909387386,
      "average_buy_amount": 0.227688822592,
      "current_value": 0.474576611914,
      "cost_basis": 0.000033909195,
      "first_buy_time": 1750435283197,
      "last_buy_time": 1753194281458,
      "last_sell_time": 1754205433802,
      "last_trade_time": 1754205433802,
      "buy_transactions": 26,
      "sell_transactions": 23,
      "total_transactions": 49
    }
  }
}

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

wallet
string
required

Query Parameters

showHistoricPnL
boolean

Adds PnL data for 1d, 7d and 30d intervals (BETA)

holdingCheck
boolean

Does an extra check for current holding value in wallet

hideDetails
boolean

Return only summary without data for each token

Response

200 - application/json

Successful response

tokens
object
summary
object
⌘I