Docs
検索⌘ K
  • Home
  • The Graphについて
  • サポートされているネットワーク
  • Protocol Contracts
  • サブグラフ
    • サブストリーム
      • Token API
        • AI Suite
          • インデクシング
            • リソース
              Token API > EVM Endpoints

              Token OHLCV prices by Contract Address

              GET/ohlc/prices/evm/{contract}

              The EVM Prices endpoint provides pricing data in the Open/High/Low/Close/Volume (OHCLV) format.

              Path Parameters

              Parameter説明書きValue
              contract
              string

              Filter by contract 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

                  ステータス説明書き
                  200Successful Response
                  400Client side error
                  401Authentication failed
                  403Forbidden
                  404Not found
                  500Server side error
                  ⁠GitHubで編集する⁠

                  Token Holders and Supply by Contract AddressOHLCV by Pool
                  Test this endpoint

                  1curl --request GET \2  --url 'https://token-api.thegraph.com/ohlc/prices/evm/{contract}?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": "WETHUSD",6      "open": 2669.130852861705,7      "high": 2669.130852861705,8      "low": 2669.130852861705,9      "close": 2669.130852861705,10      "volume": 184897.1695477702,11      "uaw": 31,12      "transactions": 3513    }14  ]15}
                  The GraphStatusTestnetBrand AssetsForumSecurityプライバシーポリシーTerms of Service