Docs
Search⌘ K
  • Home
  • About The Graph
  • Supported Networks
  • Protocol Contracts
  • Subgraphs
    • Substreams
      • Token API
        • Hypergraph
          • AI Suite
            • Indexing
              • Graph Horizon
                • Resources
                  Token API > Polymarket Market Endpoints

                  Market Positions

                  GET/v1/polymarket/markets/positions

                  Returns all user positions for a specific outcome token — a leaderboard view. Each row is one user’s cumulative position: cost basis, PNL, shares held, and current value.

                  For a user’s portfolio across all markets, use /v1/polymarket/positions instead.

                  Query Parameters

                  ParameterDescriptionValue
                  token_id
                  string
                    Required
                    closed
                    boolean
                      sort_by
                      string
                      • Default value: position_value
                      • Accepted values: position_value, realized_pnl, unrealized_pnl, total_pnl, pnl_pct, transactions, avg_price
                      position_value
                      limit
                      integer

                      Number of items* returned in a single request.
                      *Plan restricted.

                      • Default value: 10
                      • Minimum value: 1
                      • Maximum value: 1000
                      page
                      integer

                      Page number to fetch.
                      Empty data array signifies end of results.

                      • Default value: 1
                      • Minimum value: 1
                      • Maximum value: 767465558638

                      Potential Responses

                      StatusDescription
                      200

                      Successful Response

                      400

                      Client side error

                      401

                      Authentication failed

                      403

                      Forbidden

                      404

                      Not found

                      500

                      Server side error

                      ⁠Edit on GitHub⁠

                      Market ActivityPlatform Aggregates
                      Test this endpoint

                      1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/polymarket/markets/positions?token_id=53342136288932702007624506186417846874594504126387502748453102780630218207922&closed=false&sort_by=position_value&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                      1{2  "data": [3    {4      "user": "0xe8dd7741ccb12350957ec71e9ee332e0d1e6ec86",5      "buy_cost": 235027.61,6      "sell_revenue": 0,7      "realized_pnl": -235027.61,8      "unrealized_pnl": 235202.69,9      "total_pnl": 175.08,10      "pnl_pct": -1,11      "net_position": 235910.42,12      "avg_price": 0.996,13      "current_price": 0.997,14      "position_value": 235202.69,15      "active": true,16      "buys": 4573,17      "sells": 0,18      "transactions": 4573,19      "market": {20        "condition_id": "0x6331a779482df72d904c3c1e12b6409ff836bc06f8c97945cba9b25ada2c605c",21        "market_slug": "will-the-portland-trail-blazers-win-the-2026-nba-finals",22        "token_id": "48262548906086150698299934962091284390063927164151224719187427455086357699251",23        "outcome_label": "No",24        "closed": false25      }26    }27  ]28}
                      The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service