Per token, the wallet's cost basis at average cost and its realized and unrealized profit, each transfer priced at its day's close. Only tokens with $1,000 of 2% depth and known decimals count. Native ether is one row under the zero address, at wrapped ether's close, with no cost or profit.
Path Parameters
A 20-byte hex address.
^0x[0-9a-fA-F]{40}$Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/v1/wallets/string/pnl"{ "address": "string", "source": "indexer", "truncated": true, "nativeUnread": true, "perps": { "state": "read", "equityUsd": 0, "unrealizedUsd": 0, "accounts": 0, "positions": 0, "readAt": 0, "partial": true, "retryAfterSec": 0 }, "totals": { "costBasisUsd": 0, "valueUsd": 0, "unrealizedUsd": 0, "realizedUsd": 0 }, "tokens": [ { "token": "string", "symbol": "string", "decimals": 0, "balance": "string", "costBasisUsd": 0, "valueUsd": 0, "unrealizedUsd": 0, "realizedUsd": 0, "avgCostUsd": 0, "estimated": true, "firstDay": "string", "native": true } ]}List a wallet's trades GET
The wallet's priced trades, newest first, a row a transaction, sent by it or not; `token` keeps one token's. A short or empty page may still name `nextBefore`: pass it as `before` until it is null. Each key, session or (with neither) client address has one page a second, a burst of 20.
Get a wallet's value over time GET
The wallet's ERC-20 holdings and native ether valued each UTC day over the last `days`, at that day's closes. A token counts with $1,000 of 2% depth and is worth at most 100 times it. A first view reads the ether's past days a few a second: while `native.partial` is true, ask again.