---
title: "One wallet's tokens and PnL"
method: GET
path: "/chains/solana/wallet/{address}"
tags: ["Solana data"]
---

# One wallet's tokens and PnL

`GET /chains/solana/wallet/{address}`

## Request

- Base URL: `https://api.getchord.xyz/v1`
- URL: `https://api.getchord.xyz/v1/chains/solana/wallet/{address}`
- Auth: none declared

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 in `partialTokens`) and their sells have no realized PnL.
- `heldAmount` and `heldValueUsd` are 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. `coverageSince` on `/chains/solana/overview` says 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_ADDRESS` when it stops being base58 (an `L` becomes `l`) and answered `404 TOKEN_NOT_FOUND` otherwise. Solana has no numeric chain id here: the path segment is the literal `solana`.
- **Units.** Token amounts are whole tokens (decimals already applied), `quoteAmount` is whole units of the pool's quote (SOL, USDC, USDT or the other token), prices and `*Usd` fields are US dollars. Timestamps, `updatedAt` included, are Unix **seconds**.
- **Names are untrusted.** `symbol`, `name` and `image` are 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_CHAIN` if Solana is not public on the deployment and the request has no `X-API-Key`; `503 CHAIN_DATA_UNAVAILABLE` when the Solana store cannot be read in time and `503 CHAIN_NOT_ENABLED` when the lane is off: retry later, never read either as "no trades".

## Path parameters

- `address` string, required: Solana address, base58, case-sensitive. Never lower-case it.

## Query parameters

- `days` integer

## Response `200`

A wallet the tape has never seen answers zeros and an empty `positions`.

- object
  - `chain` 'solana'
  - `wallet` string: Solana address, base58, case-sensitive. Never lower-case it.
  - `windowDays` integer
  - `tokens` integer
  - `trades` integer
  - `volumeUsd` number
  - `boughtUsd` number
  - `soldUsd` number
  - `realizedPnlUsd` number
  - `unrealizedPnlUsd` number
  - `heldValueUsd` number
  - `winRate` number, nullable: Share of tokens with sells that closed in profit, 0–1.
  - `partialTokens` integer: Tokens with `partial: true`.
  - `likelyBot` boolean
  - `positions` SolPosition[]: Biggest bought + sold first.
    - `token` string: Solana address, base58, case-sensitive. Never lower-case it.
    - `symbol` string, nullable
    - `name` string, nullable
    - `image` string, nullable
    - `priceUsd` number, nullable: Current price on the main pool.
    - `boughtUsd` number
    - `soldUsd` number
    - `boughtAmount` number: Whole tokens.
    - `soldAmount` number: Whole tokens.
    - `buys` integer
    - `sells` integer
    - `heldAmount` number: Bought minus sold inside the window, whole tokens (never below 0). Not the on-chain balance.
    - `heldValueUsd` number, nullable
    - `realizedPnlUsd` number, nullable: Matched amount × (average sell − average buy). Null when the window has sells but no buys.
    - `unrealizedPnlUsd` number, nullable: Held amount × (price − average buy).
    - `partial` boolean: 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.
    - `lastDay` integer: Unix time, seconds, UTC.
  - `updatedAt` integer: Unix time, SECONDS, when the Solana box built this answer. Unlike the rest of the API (milliseconds).

## Other responses

- `400`: `BAD_ADDRESS` / `BAD_DAYS`, or `UNSUPPORTED_CHAIN` (Solana is not public on this deployment and the request has no `X-API-Key`).
- `429`: Over the per-minute limit (`RATE_LIMIT_EXCEEDED`). Read `X-RateLimit-Reset` and back off.
- `503`: `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.

---

[API](https://skmtc.dev/getchord/apis/chord-api.md) · [All operations](https://skmtc.dev/getchord/apis/chord-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getchord/apis/chord-api/revisions/d3bc4640fea0?raw)
