Last pancake trade

Returns the latest DEX trade on Ethereum and BNB Chain, where date is 2021-03-28: timestamp time, block height, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address and 5 more fields.

By Aleksey · saved 28 March 2021 · Bitquery API v1

What it returns

Filters

The query

{
    ethereum(network: bsc) {
      dexTrades(
        date: {is: "2021-03-28"}
        options: {limit: 1, desc: "block.height"}
      ) {
        
      block {
        timestamp {
          time
        }
        height
      }
        baseCurrency {
          symbol
          address
        }
        baseAmount
        quoteCurrency {
          symbol
          address
        }
        quoteAmount
        trades: count
        quotePrice
        median_price: quotePrice(calculate: median)
        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