Docs
搜索⌘ K
  • 主页
  • 关于 The Graph
  • 支持的网络
  • 协议合约
  • 子图
    • 子流
      • 代币 API
        • Hypergraph
          • AI Suite
            • 索引
              • Graph Horizon
                • 资源
                  代币 API > EVM Token Endpoints

                  Historical Balances

                  GET/v1/evm/balances/historical

                  Returns wallet token balance changes over time in OHLCV format.

                  OHLCV historical depth is subject to plan restrictions.

                  查询参数

                  参数描述值
                  network
                  string

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

                  • 可选值: arbitrum-one, avalanche, base, bsc, mainnet, optimism, polygon, unichain
                  必填
                  mainnet
                  address
                  string

                  Filter by address

                    必填
                    contract
                    string

                    Filter by contract address
                    Single value or array of values* (separate multiple values with ,)
                    *Plan restricted.

                      interval
                      string

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

                      • 默认值: 1d
                      • 可选值: 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", ...).

                      • 默认值: 2025-11-18
                      end_time
                      string

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

                      • 默认值: 2050-01-01
                      limit
                      integer

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

                      • 默认值: 10
                      • 最小值: 1
                      • 最大值: 1000
                      page
                      integer

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

                      • 默认值: 1
                      • 最小值: 1
                      • 最大值: 767465558638

                      可能的反应

                      状态描述
                      200

                      Successful Response

                      400

                      Client side error

                      401

                      Authentication failed

                      403

                      Forbidden

                      404

                      Not found

                      500

                      Server side error

                      ⁠在GitHub上编辑⁠

                      Native BalancesSupported DEXs
                      测试此终点

                      1curl --request GET \2  --url 'https://token-api.thegraph.com/v1/evm/balances/historical?network=mainnet&address=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&contract=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee&interval=1d&start_time=2025-11-18&end_time=2050-01-01&limit=10&page=1' \3  --header 'Authorization: Bearer {token}'

                      1{2  "data": [3    {4      "datetime": "2025-10-09 00:00:00",5      "address": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",6      "contract": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",7      "open": 29.589346973619755,8      "high": 50.783103394640676,9      "low": 0.7830483276016842,10      "close": 0.7841551025245886,11      "name": "Native",12      "symbol": "ETH",13      "decimals": 18,14      "network": "mainnet"15    }16  ]17}
                      The GraphStatusTestnetBrand AssetsForum安全Privacy PolicyTerms of Service