One wallet's tokens and PnL
const url = 'https://api.getchord.xyz/v1/chains/solana/wallet/example?days=7';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.getchord.xyz/v1/chains/solana/wallet/example?days=7'What a wallet bought and sold per token over the last days UTC days (today included), with an average-cost PnL: realized on the sold part, unrealized on what is still held at the current price. Up to 200 tokens, biggest first. Say how far back the numbers go when you show them.
- Transfers are not seen: a token that arrived by transfer and was then sold counts as a sell without a buy. Such rows carry
partial: true(counted inpartialTokens) and their sells have no realized PnL. heldAmountandheldValueUsdare bought minus sold inside the window, not the on-chain balance.likelyBot= more than 3,000 trades or 300 tokens a day.
Chord’s own Solana tape, read-only. No key needed.
- What it reads. The swap events of 11 venues: PumpSwap, the pump.fun bonding curve, Meteora DBC, Meteora DAMM v2, Meteora DLMM, Meteora pools (dynamic AMM v1), Raydium CLMM, Raydium CPMM, Raydium AMM v4, Raydium LaunchLab and Orca Whirlpool. Each swap is checked against the pool vaults’ balance changes in the same transaction.
- What it does not read. Prop AMMs (SolFi, HumidiFi and the like) and order books. SOL/USDC and other major pairs therefore show far less volume than the whole market; the numbers are accurate for pump.fun, Meteora and Raydium style tokens. Transfers are not seen either: wallet PnL is average cost inside the window.
- History. Live since 2026-10-03 12:01 UTC, plus a backfill of the days before.
coverageSinceon/chains/solana/overviewsays from when totals are complete: quote that field, not a date. - Addresses are base58 and case-sensitive. Never lower-case a mint or a wallet: a lower-cased mint is a different string, refused with
400 BAD_ADDRESSwhen it stops being base58 (anLbecomesl) and answered404 TOKEN_NOT_FOUNDotherwise. Solana has no numeric chain id here: the path segment is the literalsolana. - Units. Token amounts are whole tokens (decimals already applied),
quoteAmountis whole units of the pool’s quote (SOL, USDC, USDT or the other token), prices and*Usdfields are US dollars. Timestamps,updatedAtincluded, are Unix seconds. - Names are untrusted.
symbol,nameandimageare whatever the token’s creator wrote; many mints share a symbol and there are no wash or impostor flags. Identify a token by its mint. - Errors.
400 BAD_*for a bad parameter;400 UNSUPPORTED_CHAINif Solana is not public on the deployment and the request has noX-API-Key;503 CHAIN_DATA_UNAVAILABLEwhen the Solana store cannot be read in time and503 CHAIN_NOT_ENABLEDwhen the lane is off: retry later, never read either as “no trades”.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Solana address, base58, case-sensitive. Never lower-case it.
Wallet address, base58, exactly as it appears on-chain.
Query Parameters
Section titled “Query Parameters”Window in UTC days, today included.
Responses
Section titled “ Responses ”A wallet the tape has never seen answers zeros and an empty positions.
object
Solana address, base58, case-sensitive. Never lower-case it.
Share of tokens with sells that closed in profit, 0–1.
Tokens with partial: true.
Biggest bought + sold first.
One token in a wallet’s window.
object
Solana address, base58, case-sensitive. Never lower-case it.
Current price on the main pool.
Whole tokens.
Whole tokens.
Bought minus sold inside the window, whole tokens (never below 0). Not the on-chain balance.
Matched amount × (average sell − average buy). Null when the window has sells but no buys.
Held amount × (price − average buy).
Sold more than it bought inside the window: part of the position was bought before the window (or arrived by transfer), so those sells carry no cost basis.
Unix time, seconds, UTC.
Unix time, SECONDS, when the Solana box built this answer. Unlike the rest of the API (milliseconds).
Example
{ "chain": "solana", "wallet": "3QZv9xcDELwLqB8SggDJHfVhMTn5YhKtXMCaKUucutm3", "windowDays": 7, "tokens": 3, "trades": 10, "volumeUsd": 249.92409078731498, "boughtUsd": 157.82642149850838, "soldUsd": 92.09766928880659, "realizedPnlUsd": 10.89172430885074, "unrealizedPnlUsd": -13.521686548756673, "heldValueUsd": 92.65951096979586, "winRate": 1, "partialTokens": 1, "likelyBot": false, "positions": [ { "token": "7VertkgF9KLhxxJXHX6uaWuoYZTP9LdGj2bWmVXVpump", "symbol": "Agency", "name": "Agency", "image": "https://ipfs.io/ipfs/bafybeicailrr3iobedoxprzs6evwq3nqxsezdhvxbhpseyhltfmufybxuq", "priceUsd": 0.012298957291368744, "boughtUsd": 139.35060978011185, "soldUsd": 62.536948288806585, "boughtAmount": 9685.829453, "soldAmount": 3589.699624, "buys": 5, "sells": 2, "heldAmount": 6096.129829, "heldValueUsd": 74.97604040951005, "realizedPnlUsd": 10.89172430885074, "unrealizedPnlUsd": -12.72934539064596, "partial": false, "lastDay": 1791072000 }, { "token": "So11111111111111111111111111111111111111112", "symbol": "SOL", "name": "Solana", "image": "https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/So11111111111111111111111111111111111111112/logo.png", "priceUsd": 120.9862, "boughtUsd": 0, "soldUsd": 29.560721, "boughtAmount": 0, "soldAmount": 0.247089203, "buys": 0, "sells": 1, "heldAmount": 0, "heldValueUsd": 0, "realizedPnlUsd": null, "unrealizedPnlUsd": 0, "partial": true, "lastDay": 1790985600 } ], "updatedAt": 1791166532}BAD_ADDRESS / BAD_DAYS, or UNSUPPORTED_CHAIN (Solana is not public on this deployment and the request has no X-API-Key).
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}Over the per-minute limit (RATE_LIMIT_EXCEEDED). Read X-RateLimit-Reset and back off.
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}CHAIN_DATA_UNAVAILABLE (the Solana store did not answer in time) or CHAIN_NOT_ENABLED (the lane is off on this deployment). Retry later; do not treat it as an empty answer.
Every non-2xx body.
object
Stable machine code, e.g. INVALID_PARAMS, NOT_READY, RATE_LIMIT_EXCEEDED.
For humans.
HTTP status, when included.
Example
{ "error": "INVALID_PARAMS", "message": "amount must be an integer string in the token's smallest unit"}