Get trading P&L for an account
Changed onGet aggregated realized and unrealized trading profit and loss across all currencies held by a wallet address. Returns 200 with figures (which may be zero for a real but flat wallet) when OpenSea has indexed P&L for the wallet, and 404 only when no P&L has been indexed for it — letting consumers distinguish "indexed but flat" from "not indexed".
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
Response
Wallet trading P&L. Indexed wallets return 200 even when all figures are zero (real but flat).
Example response
{
"current_value_usd": "12179.9",
"net_invested_usd": "12500.0",
"realized_pnl_usd": "+1840.25",
"return_percentage": "+12.16",
"total_pnl_usd": "+1520.15",
"unrealized_pnl_usd": "-320.1"
}Changes
- info
added the media type
*/*for the response with the status - 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