# Getting Last, 24h, 7d dextrade prices in one query?

**URL:** <https://community.bitquery.io/t/getting-last-24h-7d-dextrade-prices-in-one-query/135>\
**Category:** GraphQL API\
**Tags:** closed\
**Created:** [June 9, 2021, 12:32pm UTC](https://community.bitquery.io/t/getting-last-24h-7d-dextrade-prices-in-one-query/135 "2021-06-09T12:32:12Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [July 5, 2022, 5:08am UTC](https://community.bitquery.io/t/getting-last-24h-7d-dextrade-prices-in-one-query/135/5 "2022-07-05T05:08:47Z")

</div>

Please also check this

> [@Volumn and count per hour, minute or days or week](https://community.bitquery.io/t/volumn-and-count-per-hour-minute-or-days-or-week/974):
>
> I am showing how to use time interval to get metrics based on second, mint, hourly, weekly or monthly. { 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) } …

---

_[View the full topic](https://community.bitquery.io/t/getting-last-24h-7d-dextrade-prices-in-one-query/135)._
