volume price x hours ago for a currency

Returns currencies: currency ID, currency name, currency symbol, sum of volume USD and average of price average mean.

By Akshat · saved 20 February 2026 · run 1 time · Bitquery API v2

What it returns

The query

{
  Trading {
    Currencies(
      where: {Currency: {Id: {includesCaseInsensitive: "9WHhgXJBGgxghkh5wAUWJFHVbnsRbonRYTnH2EChpump"}}, Block: {Time: {since_relative: {hours_ago: 24}}}}
    ) {
      Currency {
        Id
        Name
        Symbol
      }
      v1h: sum(of: Volume_Usd, if: {Block: {Time: {since_relative: {hours_ago: 1}}}})
      v12h: sum(
        of: Volume_Usd
        if: {Block: {Time: {since_relative: {hours_ago: 12}}}}
      )
      v24: sum(of: Volume_Usd)
      Price2h: average(
        of: Price_Average_Mean
        if: {Block: {Time: {since_relative: {hours_ago: 2}}}}
      )
      Price12h: average(
        of: Price_Average_Mean
        if: {Block: {Time: {since_relative: {hours_ago: 12}}}}
      )
    }
  }
}

Similar queries