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
}
}
}Gets Profit and Loss data for all positions of a wallet
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
}
}
}API Key for authentication
Adds PnL data for 1d, 7d and 30d intervals (BETA)
Does an extra check for current holding value in wallet
Return only summary without data for each token
Successful response
Show child attributes
Show child attributes
Was this page helpful?