# Get Price, Trading Volume, Trade Count of all Tokens in a Single API

**URL:** <https://community.bitquery.io/t/get-price-trading-volume-trade-count-of-all-tokens-in-a-single-api/106>\
**Category:** GraphQL Tutorials\
**Created:** [June 2, 2021, 12:31pm UTC](https://community.bitquery.io/t/get-price-trading-volume-trade-count-of-all-tokens-in-a-single-api/106 "2021-06-02T12:31:43Z")\
**Posts on this page:** 2\
**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:** [June 2, 2021, 12:31pm UTC](https://community.bitquery.io/t/get-price-trading-volume-trade-count-of-all-tokens-in-a-single-api/106/1 "2021-06-02T12:31:43Z")

</div>

Here is the way to get the token price of all tokens in one query.

In this query, I am saying “Give me the latest data for all base currency where quote current is USDT and limit results by per base currency”

```auto
{
  ethereum(network: ethereum) {
    list1: dexTrades(
      options: {limitBy: {each: "baseCurrency.address", limit: 1}, desc: ["block.timestamp.time", "tradeIndex"]}
      exchangeName: {is: "Uniswap"}
      quoteCurrency: {in: ["0xdac17f958d2ee523a2206206994597c13d831ec7"]}
      time: {since: "2021-06-01T00:00:00"}
    ) {
      baseCurrency {
        address
        symbol
      }
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      tradeIndex
      trades: count
      tradeAmount(in: USD)
      quoteAmount
      quotePrice
      quoteCurrency {
        address
        symbol
      }
    }
  }
}

```

---

<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:** [June 2, 2021, 12:48pm UTC](https://community.bitquery.io/t/get-price-trading-volume-trade-count-of-all-tokens-in-a-single-api/106/2 "2021-06-02T12:48:13Z")

</div>

Using the same method anyone can get the OHLC for all the tokens in 1 API call.

```auto
{
  ethereum(network: bsc) {
    dexTrades(
      options: {limitBy: {each: "baseCurrency.address", limit: 1}, desc: ["timeInterval.minute"]}
      date: {since: "2021-06-01"}
      exchangeName: {is: "Pancake"}
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

```
