OHLCV v.2 CAKE/BUSD

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x0e09…ce82, quote currency is 0xe9e7…7d56 and protocol is Uniswap v2, sorted by time interval day, highest first: exchange name, day, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address and 6 more fields.

By OlegOleg8 · saved 20 September 2021 · run 12 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, desc: "timeInterval.day"}
      protocol: {is: "Uniswap v2"}
      baseCurrency: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
      exchangeName: {is: "Pancake v2"}
    ) {
      exchange {
        name
      }
      timeInterval {
        day(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: time, get: quote_price)
      close_price: maximum(of: time, get: quote_price)
      tradeAmount(in: USD, calculate: sum)
    }
  }
}

Similar queries