v32

latestOpenAPI 3.0.0raw.githubusercontent.com2026-07-076085232.1 KB
Portfolio

Get Positions

Retrieve all active positions with P&L calculations and market values

get/portfolio/positions

Response

Complete portfolio positions with summary

pointsnumber required

User points

accumulativePointsnumber required

User accumulative points

groupobject[]

Grouped CLOB positions (if enabled)

Example response

{
  "rewards": {
    "todaysRewards": "50250000",
    "totalUnpaidRewards": "200750000",
    "totalUserRewardsLastEpoch": "150500000",
    "rewardsChartData": [
      {
        "timestamp": 1672531200000,
        "userRewards": "25000000",
        "totalRewards": "60000000"
      }
    ],
    "rewardsByEpoch": [
      {
        "epochId": 1,
        "timestamp": "2024-01-01T00:00:00.000Z",
        "totalRewards": "1500000",
        "userRewards": "150000",
        "earnedPercent": 0.1
      }
    ]
  },
  "points": 123,
  "accumulativePoints": 456,
  "amm": [
    {
      "collateralAmount": "100500000",
      "outcomeTokenAmount": "50250000",
      "account": "0x1234567890123456789012345678901234567890"
    }
  ],
  "clob": [
    {
      "positions": {
        "yes": {
          "cost": "75000000",
          "fillPrice": "750000",
          "realisedPnl": "0",
          "unrealizedPnl": "25000000",
          "marketValue": "100000000"
        },
        "no": {
          "cost": "75000000",
          "fillPrice": "750000",
          "realisedPnl": "0",
          "unrealizedPnl": "25000000",
          "marketValue": "100000000"
        }
      }
    }
  ]
}