cURL
curl --request GET \ --url https://data.solanatracker.io/pnl/{wallet}/{token} \ --header 'x-api-key: <api-key>'
{ "holding": 34587.83040999995, "held": 569619.4014500001, "sold": 569619.4014500001, "sold_usd": 8.848779535217, "realized": 4.101715619389, "unrealized": -0.696452596669, "total": 3.40526302272, "total_sold": 8.848779535217, "total_invested": 5.919909387386, "average_buy_amount": 0.227688822592, "current_value": 0.476392874873, "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 a specific token in a wallet
API Key for authentication
Successful response
Was this page helpful?