Skip to main content
GET
/
portfolio
/
{account}
/
positions
Get All User Positions
curl --request GET \
  --url https://api.limitless.exchange/portfolio/{account}/positions
{
  "rewards": {
    "todaysRewards": "50250000",
    "totalUnpaidRewards": "200750000",
    "totalUserRewardsLastEpoch": "150500000",
    "rewardsByEpoch": [
      {
        "epochId": 1,
        "timestamp": "2024-01-01T00:00:00.000Z",
        "totalRewards": "1500000",
        "userRewards": "150000",
        "earnedPercent": 0.1
      }
    ],
    "rewardsChartData": [
      {
        "timestamp": 1672531200000,
        "userRewards": "25000000",
        "totalRewards": "60000000"
      }
    ]
  },
  "points": 123,
  "accumulativePoints": 456,
  "amm": [
    {
      "market": {},
      "outcomeIndex": 0,
      "collateralAmount": "100500000",
      "latestTrade": {},
      "outcomeTokenAmount": "50250000",
      "account": "0x1234567890123456789012345678901234567890"
    }
  ],
  "clob": [
    {
      "market": {
        "address": "<string>",
        "title": "<string>",
        "proxyTitle": null,
        "description": "<string>",
        "question_id": {},
        "condition_id": {},
        "position_ids": [
          "<array>"
        ],
        "outcome_slot_count": 2,
        "winning_index": 0.5,
        "payout_numerators": [
          "<string>"
        ],
        "status": "<string>",
        "og_url": "<string>",
        "image_url": "<string>",
        "deadline": "<string>",
        "hidden": false,
        "txHash": null,
        "resolutionTxHash": null,
        "priority_index": null
      },
      "positions": {
        "yes": {
          "cost": "75000000",
          "fillPrice": "750000",
          "realisedPnl": "0",
          "unrealizedPnl": "25000000",
          "marketValue": "100000000"
        },
        "no": {
          "cost": "25000000",
          "fillPrice": "250000",
          "realisedPnl": "0",
          "unrealizedPnl": "-5000000",
          "marketValue": "20000000"
        }
      },
      "tokensBalance": {},
      "orders": {},
      "latestTrade": {},
      "rewards": {}
    }
  ],
  "group": [
    {}
  ]
}

Path Parameters

account
string
required

User Ethereum address

Example:

"0x742d35Cc6634C0532925a3b844Bc454e4438f44e"

Response

200 - application/json

Complete list of user positions

rewards
object
required

Rewards information for the portfolio

points
number
required

User points

Example:

123

accumulativePoints
number
required

User accumulative points

Example:

456

amm
object[]
required

List of AMM positions

clob
object[]
required

List of CLOB positions

group
object[]

Grouped CLOB positions (if enabled)