# Wrong query? I need to know price, trading volume, old price, address, name, symbol

**URL:** <https://community.bitquery.io/t/wrong-query-i-need-to-know-price-trading-volume-old-price-address-name-symbol/1030>\
**Category:** GraphQL API\
**Created:** [May 15, 2022, 12:50pm UTC](https://community.bitquery.io/t/wrong-query-i-need-to-know-price-trading-volume-old-price-address-name-symbol/1030 "2022-05-15T12:50:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [May 15, 2022, 12:50pm UTC](https://community.bitquery.io/t/wrong-query-i-need-to-know-price-trading-volume-old-price-address-name-symbol/1030/1 "2022-05-15T12:50:57Z")

</div>

good evening,  
i am using this query to get  
address, name, symbol, latest price, daily trading volume, and the previous price from 24 hours ago.  
for example 2022/05/15 hour 10.30\> 2022/05/14 hour 10.30  
(but the latter two don’t work) where am I wrong?

```auto
{
  ethereum(network: bsc) {
    list1: dexTrades(
      options: {limitBy: {each: "baseCurrency.symbol", limit: 1}, desc: ["block.timestamp.time", "tradeIndex","timeInterval.day"]}
      exchangeName: {in: ["Pancake","Pancake v2"]},
      quoteCurrency: {in: ["0x55d398326f99059ff775485246999027b3197955"]}
      time: {since: "2022-05-15T00:00:00"}
    ) {
      timeInterval {
      day(count: 1)
      }
      baseCurrency {
        address
        symbol
        name
      }
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      tradeIndex
      trades: count
      tradeAmount(in: USD)
      quoteAmount
      quotePrice
      close_price: maximum(of: block, get: quote_price)
      quoteCurrency {
        address
        symbol
        name
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![mbajpai](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mbajpai](https://community.bitquery.io/u/mbajpai)\
**Post date:** [May 17, 2022, 2:01pm UTC](https://community.bitquery.io/t/wrong-query-i-need-to-know-price-trading-volume-old-price-address-name-symbol/1030/2 "2022-05-17T14:01:54Z")

</div>

> [@Raziel90](#):
>
> trading volume, and the previous price

Try using this query

> **[trading volume & prev 24 hr price](https://ide.bitquery.io/trading-volume--prev-24-hr-price)**
>
> Bitquery is analytical engine for blockchains

---

<div class="post-metadata">

**Author:** ![Raziel90](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@Raziel90](https://community.bitquery.io/u/Raziel90)\
**Post date:** [May 17, 2022, 5:29pm UTC](https://community.bitquery.io/t/wrong-query-i-need-to-know-price-trading-volume-old-price-address-name-symbol/1030/3 "2022-05-17T17:29:11Z")

</div>

thanks for the reply, i noticed that small volumes work volumes over 2000 usd give broken values.  
the old price doesn’t work, like my code
