jude query

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xdf6b…426f, quote currency is 0xe9e7…7d56 and exchange name is Pancake, sorted by time interval minute, highest first: minute, day, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address and 5 more fields.

By hi · saved 29 April 2021 · Bitquery API v1

What it returns

Filters

The query

 {
  ethereum(network: bsc) {
    dexTrades(
      options: {limitBy: { limit: 2, each: "baseCurrency.address" }, desc: "timeInterval.minute"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0xdf6b2112c9d7ec7ea9f65a23a2e8e5bec562426f"}
      quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        minute(count: 1)
        day(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{"limit":100,
  "offset":0,
  "network":"bsc",
  "address":"0xc0a6f81e9073705dd5a43a0a70f5d39880ff7b68"
}

Similar queries