On-chain holdings with cost-basis overlay
Returns the wallet’s current on-chain SPL token holdings sourced from Shyft’s all_tokens API, with FIFO cost-basis and unrealized PnL overlaid where Dexploit has swap history.
Tokens acquired via airdrop or off-platform transfers will appear with no_cost_basis: true and cost_basis_sol: null.
When Shyft is temporarily unavailable the endpoint degrades to FIFO-derived holdings and sets holdings_source: "fifo_fallback" — it never returns 5xx on a Shyft outage.
Response is cached 30 seconds per wallet. See Wallet portfolio for a full explanation of the two holdings sources.
Authorizations
Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).
Path Parameters
Wallet address (base58, 32–44 characters).
Query Parameters
Filter FIFO cost-basis computation to a single DEX by integer ID. See DexId for the mapping. Has no effect on the Shyft on-chain token list.
Response
Holdings with cost-basis
Response from /wallets/{w}/holdings. holdings_source indicates whether the token list came from Shyft (authoritative) or fell back to FIFO-derived data.
shyft = authoritative on-chain balances. fifo_fallback = Shyft was temporarily unavailable; list is derived from Dexploit's swap index only.
shyft, fifo_fallback Unix epoch milliseconds when this response was assembled.

