Docs
La Recherche⌘ K
  • Accueil
  • À propos de The Graph
  • Réseaux pris en charge
  • Contrats du Protocole
  • Subgraphs
    • Substreams
      • Token API
        • Hypergraph
          • 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

                ParameterDescriptionValue
                pool
                string

                Filter by pool address

                  Required

                  Paramètres de requête

                  ParameterDescriptionValue
                  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.

                    • Default value: 1735689600
                    • 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

                    StatusDescription
                    200Successful Response
                    400Client side error
                    401Authentication failed
                    403Forbidden
                    404Not found
                    500Server side error
                    ⁠Edit on GitHub⁠

                    Token OHLCV prices by Contract AddressNFT Activities
                    Test this endpoint

                    1curl --request GET \2  --url 'https://token-api.thegraph.com/ohlc/pools/evm/{pool}?network_id=mainnet&startTime=1735689600&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 GraphStatusTestnetActifs de la MarqueForumSécuritéPolitique de confidentialitéConditions d'utilisation