Skip to content
Alchemy Logo

Get wallet PnL

GET
https://api.g.alchemy.com/trading/v1/{apiKey}/wallets/{address}/pnl

Private preview: Paths, parameters, response fields, and tier names are provisional.

Compute units: 800 (proposed; pending validation).

Measure lifetime realized and unrealized profit or loss using average cost, split by network and token. All requested networks must be EVM networks. Pagination applies to token rows. General and Premium use different methodologies and their numbers are not comparable.

Use pageKey until it is null.

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

stringrequired

Wallet address.

Query Parameters

enum[]required

Supported networks for this operation during private preview. All networks must be EVM.

string

Omit for the first page. Reuse the returned key unchanged; stop when the response key is null.

integerdefaults to 25

Maximum rows per page; provisional limit.

enum

Metric used to order token results. Default order and direction are pending.

Allowed values:

Responses

200

Successful response.

400

Invalid request parameters.

401

Invalid API key.

429

Request limit reached. Retry with backoff.

503

Data temporarily unavailable. Retry with backoff.

Was this page helpful?