CTG Binance Smart chain

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x69bf…e7b4, quote currency is 0x55d3…7955 and exchange name is Pancake or Pancake v2, sorted by time interval day: day, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Stas Kharianov · saved 9 July 2024 · run 17 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100, asc: "timeInterval.day"}
      date: {since: "2023-04-18"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0x69bfa36d50d92e8985d27e6aa6e685c0325ce7b4"}
      quoteCurrency: {is: "0x55d398326f99059fF775485246999027B3197955"}
    ) {
      timeInterval {
        day(count: 20)
      }
      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)
    }
  }
}

Similar queries