chart

Returns 10 DEX trades on Ethereum and BNB Chain, where buy currency is 0x1d2f…0dbe, sell currency is 0xbb4C…095c and protocol is Uniswap 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 Andrey · saved 20 September 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, asc: "timeInterval.minute"}
      protocol: {is: "Uniswap v2"}
      date: {is: "2021-09-18"}
      buyCurrency: {is: "0x1d2f0da169ceb9fc7b3144628db156f3f6c60dbe"}
      sellCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
    ) {
      timeInterval {
        minute(count: 1440)
      }
      buyCurrency {
        symbol
        address
      }
      buyAmount
      sellCurrency {
        symbol
        address
      }
      sellAmount
      trades: count
      maximum_price: price(calculate: maximum)
      minimum_price: price(calculate: minimum)
      open_price: minimum(of: block, get: price)
      close_price: maximum(of: block, get: price)
    }
  }
}

Similar queries