Get user portfolio with all pools containing closed positions
Portfolio
Get user portfolio with all pools containing closed positions
Returns a paginated list of pools where the user has closed positions, sorted by most recent activity (last_closed_at DESC). The response includes:
- Pool metadata (address, token symbols, icons, fees)
- Aggregated PnL data (deposits, withdrawals, fees, total PnL)
- Per-token breakdowns (X and Y)
For detailed position history within each pool, call the /positions//pnl endpoint.
Arguments
user- The wallet address of the userpage- Page number for pagination (default: 1)page_size- Number of pools per page (default: 120, max: 365)days_back- Only include pools with positions closed within this many days (default: 90)
Returns
200- The user’s portfolio with pool metadata and aggregated PnL400- Invalid user address or query parameters
GET
Get user portfolio with all pools containing closed positions
Documentation Index
Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
User's wallet address
Page number for pagination (minimum: 1, default: 1)
Required range:
x >= 0Page size for pagination (default: 20, maximum: 50)
Required range:
x >= 0Only include pools with positions closed within this many days Applied only for closed positions (minimum: 1, maximum: 365, default: 120)
Required range:
x >= 0Response
200 - application/json
User portfolio response with aggregated pool data
Required range:
x >= 0Required range:
x >= 0Required range:
x >= 0Total number of closed positions across all pools
Required range:
x >= 0
