trading volume & prev 24 hr price

Returns DEX trades on Ethereum and BNB Chain, where quote currency is 0x55d3…7955, exchange name is Pancake or Pancake v2 and time since 2022-05-15, sorted by block timestamp time trade index time interval day, highest first: day, base currency address, base currency symbol, base currency name, block height, timestamp time, trade index and 9 more fields.

By Mann · saved 17 May 2022 · run 16 times · Bitquery API v1

What it returns

Filters

The query

{
  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
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      tradeAmount(in: USD)
      quotePrice
      close_price: maximum(of: block, get: quote_price)
      quoteCurrency {
        address
        symbol
        name
      }
    }
  }
}

Similar queries