Babydoge min price bug?

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0xc748…e8de, quote currency is 0xbb4C…095c and exchange name is Pancake v2, sorted by trade amount, highest first: exchange name, hour, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address and 6 more fields.

By Damien · saved 3 July 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: { desc: ["tradeAmount"], limit: 100 }
      time: { since: "2021-07-03T07:00:00Z", till: "2021-07-03T07:59:00Z" }
      exchangeName: {in: ["Pancake v2"]}
      baseCurrency: { is: "0xc748673057861a797275cd8a068abb95a902e8de" }
      quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
    ) {
      exchange {
        name
      }
      timeInterval {
        hour(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      tradeAmount(in: USD)
      quotePrice
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries