GLK-OHLC

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

By sunlight · saved 15 May 2025 · Bitquery API v2

What it returns

Filters

The query

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