debug

Returns 20000 DEX trades on Ethereum and BNB Chain, where smart contract address is 0xBFF9…d7Df and quote currency is 0xbb4c…095c, sorted by time interval hour: hour, quote price, minimum of block, maximum of block, quote amount, base currency name, quote currency name and full name.

By Robin Michel · saved 21 September 2021 · Bitquery API v1

What it returns

Filters

The query

{
      ethereum(network: bsc) {
        dexTrades(
          options: {limit: 20000,asc: "timeInterval.hour"}
          
          smartContractAddress: {is: "0xBFF97D9a0719EeB69b56e4d0Cd5a3C82F0Ffd7Df"}
          quoteCurrency: {in: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
        ) {
          timeInterval {
            hour(count: 1)
          }
          high: quotePrice(calculate: maximum)
          low: quotePrice(calculate: minimum)
          open: minimum(of: block, get: quote_price)
          close: maximum(of: block, get: quote_price)
          quoteAmount(in: USD)
          baseCurrency {
            name
          }
          quoteCurrency {
            name
          }
          exchange {
                fullName
            }
        }
      }
    }

Similar queries