Get portfolio stats for an account
Changed onGet portfolio analytics including total value, NFT/token breakdown, and P&L for a wallet address over a given timeframe.
Request
- Base URLhttps://api.opensea.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The wallet address
Query parameters
Timeframe for portfolio analytics queries
Timeframe for P&L calculation: HOUR, DAY, WEEK, MONTH
Comma-separated chains to restrict the portfolio to (e.g. ethereum,base). When omitted, all supported chains are included. Returns 400 if all specified chains are unsupported.
[ "ethereum" ]
Response
Portfolio stats
Example response
{
"nft_value_usd": "98200.0",
"pnl_absolute": "+1250.00",
"pnl_percentage": "+1.01",
"timeframe": "WEEK",
"token_value_usd": "27230.5",
"total_value_usd": "125430.5"
}Changes
- breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - info
added the new optional
queryrequest parameterchains - info
added the media type
*/*for the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking