Docs
Search⌘ K
  • Home
  • حول The Graph
  • الشبكات المدعومة
  • Protocol Contracts
  • Subgraphs
    • متعدد-السلاسل
      • Token API
        • AI Suite
          • Indexing
            • Resources
              Token API > EVM Endpoints

              OHLCV by Pool

              GET/ohlc/pools/evm/{pool}

              Provides pricing data in the Open/High/Low/Close/Volume (OHCLV) format.

              Path Parameters

              ParameterالوصفValue
              pool
              string

              Filter by pool address

                Required

                Query Parameters

                ParameterالوصفValue
                network_id
                string

                The Graph Network ID for EVM networks https://thegraph.com/networks

                • Default value: mainnet
                • Accepted values: arbitrum-one, avalanche, base, bsc, mainnet, matic, optimism, unichain
                Required
                mainnet
                interval

                The interval for which to aggregate price data (hourly, 4-hours, daily or weekly).

                  startTime
                  integer

                  UNIX timestamp in seconds.

                  • Minimum value: -9007199254740991
                  • Maximum value: 9007199254740991
                  endTime
                  integer

                  UNIX timestamp in seconds.

                  • Default value: 9999999999
                  • Minimum value: -9007199254740991
                  • Maximum value: 9007199254740991
                  limit
                  integer

                  The maximum number of items returned in a single request.

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

                  The page number of the results to return.

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

                  Potential Responses

                  Statusالوصف
                  200Successful Response
                  400Client side error
                  401Authentication failed
                  403Forbidden
                  404Not found
                  500Server side error
                  ⁠Edit on GitHub⁠

                  Token OHLCV prices by Contract AddressLiquidity Pools
                  Test this endpoint

                  1curl --request GET \2  --url 'https://token-api.thegraph.com/ohlc/pools/evm/{pool}?network_id=mainnet&startTime=0&endTime=9999999999&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                  1{2  "data": [3    {4      "datetime": "2025-05-29 15:00:00",5      "ticker": "WETHUSDC",6      "open": 2674.206768283323,7      "high": 2674.206768283323,8      "low": 2648.1288363948797,9      "close": 2648.1288363948797,10      "volume": 5062048.294222999,11      "transactions": 16912    }13  ]14}
                  The GraphStatusTestnetBrand AssetsForumSecurityPrivacy PolicyTerms of Service