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 Open Interest

                  GET/v1/polymarket/markets/oi

                  Returns open interest time-series for a market. Open interest is the USDC collateral locked into conditional token positions — it increases on splits (deposit USDC to mint Yes+No pairs) and decreases on merges (return pairs to withdraw USDC) or redemptions.

                  Provide one of condition_id or market_slug.

                  Query Parameters

                  ParameterDescriptionValue
                  condition_id
                  string
                    market_slug
                    string
                      interval
                      string

                      The interval* for which to aggregate price data (1-minute, 5-minutes, 10-minutes, 30-minutes, hourly, 4-hours, daily or weekly).
                      *Plan restricted.

                      • Default value: 1d
                      • Accepted values: 1m, 5m, 10m, 30m, 1h, 4h, 1d, 1w
                      1d
                      start_time
                      string

                      UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...).

                        end_time
                        string

                        UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...).

                          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 OHLCVMarket Activity
                          Test this endpoint

                          1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/polymarket/markets/oi?condition_id=0x9708334534b504e2025a5a6af92f8600808c10be577e5066f920c40625fbec16&market_slug=will-bitcoin-reach-150k-in-january-2026&interval=1d&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                          1{2  "data": [3    {4      "timestamp": "2025-04-04 00:00:00",5      "net_open_interest": 43835.62,6      "split_amount": 292320.96,7      "merge_amount": 248485.34,8      "split_count": 989,9      "merge_count": 172,10      "transactions": 1161,11      "unique_stakeholders": 14,12      "market": {13        "condition_id": "0x39e227f0e4a6c0a7b282d77ae0e7d247d0cc4b8e69a348e853442bbd4db10f6a",14        "market_slug": "bitcoin-above-86000-on-april-4",15        "token_id": null,16        "outcome_label": null,17        "closed": false18      }19    }20  ]21}
                          The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service