Get Portfolio PnL History

PnL, rewards, deposits, withdrawals and value history over a window, per wallet, per position asset and in total. Covers native coins, ERC-20 tokens and DeFi positions; NFTs are not included. EVM and Solana addresses may be mixed in one request. The window ends at the current minute and starts on the hour period earlier. Rows match /portfolio/positions by (wallet, chain.id, position.category, position.id, token.address). Solana DeFi legs are served as a current snapshot without history or PnL. A source the access layer could not read is answered with 200, data_incomplete and unavailable_sources rather than a 500, so the wallets that were read are still served.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
wallets
array of strings
required
length between 1 and 50

Wallet addresses. EVM and Solana addresses may be mixed; repeats are served once.

Wallets*
string
enum
Defaults to MONTH

Window ending at the current minute and starting on the hour: DAY is sampled hourly, WEEK every 6 hours, MONTH (30 days) daily. YEAR and FULL are accepted but served as MONTH.

Allowed:
boolean
Defaults to false

Return each position's APR at the points of its pnl_history (extra query).

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json