Profit and Loss
Realized and unrealized profit per token from the wallet's own trades over the last N days.
GET /v1/crypto/wallet/:wallet/pnl
- Chains
- on 4 chains; pick one with
chain. The answer has the same shape on every one. - Price
- Each call costs $0.005. Your first 100 priced calls each day are free, so you can try it before adding credits.
- Freshness
- The answer can be up to 15 s old; cached answers say so with cached: true.
- Answer
- Always
{ data, cost_usd, balance_usd, cached, request_id }.
Parameters
| Name | Type | Required | What it is | Example |
|---|---|---|---|---|
| walletpath | string | yes | The wallet's address: a Solana address, or a 0x address on an EVM chain. | 7KZHexZyoDdrGi5S2FNAB3XNKKXJ6dLpSXLnBw8f9ESx |
| chainquery | string | no, default solana | Which chain: solana, ethereum, base, bsc, arbitrum, polygon, avalanche, optimism, hyperevm, monad, abstract, sonic, berachain, sei, linea, zksync, mantle, unichain, ronin, cronos, worldchain, scroll, celo, pulsechain, ink, soneium, metis, manta, katana, plasma, flowevm, kava, tron, sui, ton, aptos, near, starknet, xrpl, injective, hyperliquid, robinhood, elysium, arc, megaeth, fantom, opbnb, zora, mode, taiko, lisk, fraxtal, apechain, story, sophon, gnosis, core, xlayer, hedera, polygonzkevm, immutable, kaia, aurora, boba, shibarium, rootstock, bitlayer, merlin, etherlink, xrplevm, vana, bob, shape, beam, memecore, stable, tempo, stacks, cardano, stellar. Default solana. | solana |
| daysquery | number | no, default 30 | How far back to read trades, 1 to 90 days. | 7 |
Try it
A real call. Your first 100 priced calls a day are free; after that it costs the price above. Edit anything and run it.
Response
Example data (the answer sits inside the envelope)
{
"data": {
"wallet": "7KZHexZyoDdrGi5S2FNAB3XNKKXJ6dLpSXLnBw8f9ESx",
"chain": "solana",
"days": 7,
"since_at": "2026-11-21T22:21:31.000Z",
"realized_usd": -0.21,
"unrealized_usd": 82.25,
"total_usd": 82.04,
"tokens": [
{
"mint": "4ec7Lf7JuCYQVQnUJCzpW5YvaPMNEAeqDRwGcU5n9GGJ",
"symbol": "SATOSHI",
"buys": 5,
"sells": 0,
"bought": 6757851.824907,
"sold": 0,
"cost_usd": 439.68,
"proceeds_usd": 0,
"avg_buy_usd": 0.00006506167777200866,
"price_usd": 0.00007751,
"realized_usd": 0,
"unrealized_usd": 84.12
},
{
"mint": "Ce2gx9KGXJ6C9Mp5b5x1sn9Mg87JwEbrQby4Zqo3pump",
"symbol": "neet",
"buys": 4,
"sells": 0,
"bought": 2050.594427,
"sold": 0,
"cost_usd": 39.7,
"proceeds_usd": 0,
"avg_buy_usd": 0.019362192126683272,
"price_usd": 0.01882,
"realized_usd": 0,
"unrealized_usd": -1.11
}
],
"method": "Average cost. A trade is a transaction where this wallet paid SOL, USDC, USDT and got one other token back, or the reverse. SOL is valued at today's price ($70.36) on both legs, stablecoins at $1; still-held tokens at today's DexScreener price. Fees are not counted.",
"coverage": {
"transactions_read": 34,
"transactions_in_window": 128,
"trades": 24,
"complete": false,
"oldest_read_at": "2026-11-22T17:24:52.000Z"
},
"note": "86 transactions could not be read from the Solana RPC this time (throttled) and are not counted; ask again in a moment. Only the newest 120 transactions of the window were read, back to 2026-11-22: profit before that is not counted. Ask for fewer days to cover the whole window. 2 tokens were sold beyond what the window bought (coins bought earlier): that part realises nothing here, since its cost is not known."
},
"cost_usd": 0.005,
"balance_usd": "…",
"cached": false,
"request_id": "req_…"
}What the example answered when this page was built, shortened. Run it for a live answer.
Copy it
Runs as-is with your key in place of c2a_your_key. The MCP block gives an agent every endpoint in one server.
curl "https://api.crypto2api.com/v1/crypto/wallet/7KZHexZyoDdrGi5S2FNAB3XNKKXJ6dLpSXLnBw8f9ESx/pnl?chain=solana&days=7" \
-H "Authorization: Bearer c2a_your_key"