token price query Huynh <> Bitquery

Returns the latest token, where token address is 0x4ff5…4444 and time duration is 60: mean, close, base and USD.

By Kshitij Mahajan · saved 28 October 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query GetPrice($token: String!) {
  Trading {
    Tokens(
      where: {Token: {Address: {is: $token}}, Interval: {Time: {Duration: {eq: 60}}}}
      limit: {count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Price {
        Average {
          Mean
        }
        Ohlc {
          Close
        }
      }
      Volume{
        Base
        Usd
      }
    }
  }
}

Variables

{
  "token": "0x4ff51d7A83fA54fcC2C861a30699d3d2e8aB4444"
}

Similar queries