Skip to main content
GET
/
v2
/
clob
/
positions
/
summary
curl "https://api.pmx.trade/v2/clob/positions/summary?pubkey=7xKXabc123..."
{
  "totalRealizedPnl": "5000000",
  "totalUnrealizedPnl": "2500000",
  "totalFees": "150000",
  "activePositions": 2,
  "resolvedPositions": 1,
  "markets": [
    {
      "marketId": "550e8400-...",
      "marketSlug": "btc-100k-2025",
      "realizedPnl": "3000000",
      "unrealizedPnl": "2500000"
    },
    {
      "marketId": "661f9500-...",
      "marketSlug": "eth-merge-date",
      "realizedPnl": "2000000",
      "unrealizedPnl": "0"
    }
  ]
}
Returns a portfolio-level P&L summary with totals and per-market breakdown. Useful for displaying overall trading performance.

Query parameters

pubkey
string
required
The Solana wallet public key (base58-encoded).

Response

totalRealizedPnl
string
Total realized P&L across all markets (raw USDC units).
totalUnrealizedPnl
string
Total unrealized P&L across all markets (raw USDC units). Based on current orderbook mid-prices.
totalFees
string
Total fees paid across all markets (raw USDC units).
activePositions
integer
Number of markets with non-zero token holdings.
resolvedPositions
integer
Number of markets where all positions are fully closed (zero holdings).
markets
array
curl "https://api.pmx.trade/v2/clob/positions/summary?pubkey=7xKXabc123..."
{
  "totalRealizedPnl": "5000000",
  "totalUnrealizedPnl": "2500000",
  "totalFees": "150000",
  "activePositions": 2,
  "resolvedPositions": 1,
  "markets": [
    {
      "marketId": "550e8400-...",
      "marketSlug": "btc-100k-2025",
      "realizedPnl": "3000000",
      "unrealizedPnl": "2500000"
    },
    {
      "marketId": "661f9500-...",
      "marketSlug": "eth-merge-date",
      "realizedPnl": "2000000",
      "unrealizedPnl": "0"
    }
  ]
}
Use this endpoint for portfolio dashboards. For detailed per-outcome positions, use List Positions instead.