Wallet profit and loss
wallet_pnlCalculates realized and unrealized PnL per token from a Solana wallet's DEX swaps in USD, helping assess rug profits, insider gains, and overall trading results.
Instructions
Realized and unrealized PnL per token from a wallet's DEX swaps, valued in USD at the time of each swap (average-cost basis). Answers "did this wallet profit from the rug" (pass mint), sniper/insider profit, and overall trading results. Sales of tokens never bought in the sample (airdropped, sent by a dev wallet, bought before the sample) are reported as unmatchedProceedsUsd and realizedPnlIfUnboughtFreeUsd instead of realized PnL — check those for insiders. With mint set, receivedWithoutSwap lists who sent the wallet that token for free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| mint | No | Only swaps that touch this token | |
| address | Yes | Base58 Solana address | |
| swapLimit | No |