babydogearmy

Returns 10 DEX trades on Ethereum and BNB Chain, where exchange address is 0xcA14…0c73, base currency is 0xc3da…a6d1 and quote currency is 0xbb4c…095c, sorted by time interval minute: minute, quote amount, minimum of block, count, quote price and maximum of block.

By Bart · saved 13 January 2022 · Bitquery API v1

What it returns

Filters

The query

{
    ethereum(network: bsc) {
      dexTrades(
        options: {asc: "timeInterval.minute" limit: 10 offset:10}
        exchangeAddress: {is: "0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73"}
        baseCurrency: {is: "0xc3da1d9dd82698349c338c500bdfe2f27ff1a6d1"},
        quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"},   
        tradeAmountUsd: {gt: 10}
      ) 
      {
        timeInterval {
          minute(count: 1, format: "%Y-%m-%dT%H:%M:%SZ")  
        }
        volume: quoteAmount
        open: minimum(of: block, get: quote_price)
        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)
      }
    }
  }

Similar queries