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
              • Graph Horizon
                • Resources
                  Token API > EVM DEX Endpoints

                  Pool OHLCV Data

                  GET/v1/evm/pools/ohlc

                  Returns OHLCV price data for liquidity pools.

                  OHLCV historical depth is subject to plan restrictions.

                  Paramètres de requête

                  ParameterDescriptionValue
                  network
                  string

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

                  • Accepted values: arbitrum-one, avalanche, base, bsc, mainnet, optimism, polygon, unichain
                  Required
                  mainnet
                  pool
                  string

                  Filter by pool address

                    Required
                    interval
                    string

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

                    • Default value: 1d
                    • Accepted values: 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", ...).

                    • Default value: 2025-10-13
                    end_time
                    string

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

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

                    Supported DEXsLiquidity Pools
                    Test this endpoint

                    1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/evm/pools/ohlc?network=mainnet&pool=0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640&interval=1d&start_time=2025-10-13&end_time=2050-01-01&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                    1{2  "data": [3    {4      "datetime": "2025-10-16 00:00:00",5      "ticker": "USDCWETH",6      "pool": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",7      "open": 3986.8562193110524,8      "high": 4067.092237083535,9      "low": 3959.52075942394,10      "close": 3989.7646037044765,11      "volume": 32956701.586648002,12      "uaw": 1363,13      "transactions": 306614    }15  ]16}
                    The GraphStatusTestnetActifs de la MarqueForumSécuritéPolitique de confidentialitéConditions d'utilisation