v1

latestOpenAPI 3.0.32026-07-263871106.2 KB
Portfolio

Get total portfolio PnL across all pools

Returns the all-time total PnL in USD and percentage change across all user's pools. This aggregates data from all closed positions across the entire portfolio.

Arguments

  • user - The wallet address of the user

Returns

  • 200 - The user's total portfolio PnL
  • 400 - Invalid user address or query parameters
get/portfolio/total

Query parameters

userstring required

User's wallet address

Response

Successfully retrieved portfolio totals

totalPnlPctChangestring required

Total PnL percentage change across all pools (USD)

totalPnlSolstring required

Total PnL in SOL across all pools (historical per-event SOL price)

totalPnlSolPctChangestring required

Total PnL percentage change across all pools (SOL)

totalPnlUsdstring required

Total amount deposited in USD across all pools NOTE: Commented out for now, but may be needed in the future Total PnL in USD across all pools