btc volume, tokens vs currency cube

Returns currencies and tokens, where currency ID is bid:bitcoin, block time since 2026-09-01 and block time till 2026-09-01: USD, sum of volume USD and count.

By Kshitij Mahajan · saved 3 September 2026 · Bitquery API v2

What it returns

Filters

The query

{
  Trading {
    c: Currencies(
      where: {Currency: {Id: {is: "bid:bitcoin"}}, Interval: {Time: {Duration: {eq: 3600}}}, Block: {Time: {since: "2026-09-01T12:00:00Z", till: "2026-09-01T13:00:00Z"}}}
    ) {
      Volume {
        Usd
      }
    }
    t: Tokens(
      where: {Currency: {Id: {is: "bid:bitcoin"}}, Interval: {Time: {Duration: {eq: 3600}}}, Block: {Time: {since: "2026-09-01T12:00:00Z", till: "2026-09-01T13:00:00Z"}}}
    ) {
      sum(of: Volume_Usd)
      count
    }
  }
}

Similar queries