Charting

Returns DEX trades on Ethereum and BNB Chain, where exchange address is 0x2456…263e, base currency is 0xbb4C…095c and quote currency is 0xB3E8…b07A, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote price and 2 more fields.

By Faizel · saved 29 December 2022 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {asc: "timeInterval.minute"}
      date: {since: "2022-12-27", till: "2022-12-27"}
      priceAsymmetry: {lteq: 10},
      tradeAmountUsd: {gteq: 1}
      exchangeAddress: {is: "0x245649a4f8f55a7b295273a71f6654946164263e"}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0xB3E8e9d378175f25502e47666073DCf10902b07A"}
    ) {
      timeInterval {
        minute(count: 15, format: "%Y-%m-%dT%H:%M:%SZ")
      }
			baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries