EC Candles data

Returns 1000000 DEX trades on Ethereum and BNB Chain, where buy currency is 0x400d…f7ec, sell currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2, sorted by time interval minute: minute, buy currency symbol, buy currency address, buy amount, sell currency symbol, sell currency address, sell amount and 4 more fields.

By gaurav · saved 18 November 2021 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1000000, asc: "timeInterval.minute"}
      date: {is: "2021-11-16"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      buyCurrency: {is: "0x400df62c3052fdbaad8c74c0226147f9bfaaf7ec"}
      sellCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      timeInterval {
        minute(count: 30)
      }
      buyCurrency {
        symbol
        address
      }
      buyAmount
      sellCurrency {
        symbol
        address
      }
      sellAmount
      trades: count
      maximum_price: price(calculate: maximum)
      minimum_price: price(calculate: minimum)
      median_price: price(calculate: median)
      open_price: minimum(of: block, get: price)
      close_price: maximum(of: block, get: price)
    }
  }
}

Similar queries