# Volumn and count per hour, minute or days or week

**URL:** <https://community.bitquery.io/t/volumn-and-count-per-hour-minute-or-days-or-week/974>\
**Category:** GraphQL Tutorials\
**Created:** [April 8, 2022, 3:47pm UTC](https://community.bitquery.io/t/volumn-and-count-per-hour-minute-or-days-or-week/974 "2022-04-08T15:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav](https://avatars.discourse-cdn.com/v4/letter/g/b487fb/32.png) [@gaurav](https://community.bitquery.io/u/gaurav)\
**Post date:** [April 8, 2022, 3:47pm UTC](https://community.bitquery.io/t/volumn-and-count-per-hour-minute-or-days-or-week/974/1 "2022-04-08T15:47:16Z")

</div>

I am showing how to use `time interval` to get metrics based on second, mint, hourly, weekly or monthly.

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      date: {since: "2022-04-06"}
      exchangeAddress: {is: "0xca143ce32fe78f1f7019d7d551a6402fc5350c73"}
      baseCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      count
      tradeAmount(in: USD)
      timeInterval{
        hour (count: 4)
      }
    }
  }
}

```

You change “hour” to in anything in following

![Screenshot 2022-04-08 at 9.16.43 PM](https://us1.discourse-cdn.com/flex016/uploads/bitquery/original/1X/aec3a473022507946f6513ec939fe7d441a7b313.png)
