pancake trades

Returns the latest 20 DEX trades on Ethereum and BNB Chain, where exchange name is Pancake or Pancake v2 and date after 2022-04-23: transaction hash, block height, trade index, buy currency symbol, buy currency address, sell currency symbol, sell currency address and 5 more fields.

By gaurav · saved 28 April 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 20, desc: ["block.height", "tradeIndex"]}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      date: {after: "2022-04-23"}
    ) {
      transaction {
        hash
      }
      block {
        height
      }
      tradeIndex
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      buyAmount(calculate: maximum)
      sellAmount(calculate: maximum)
      any(of: time)
      exchange {
        fullName
      }
      tradeAmount(in: USD)
    }
  }
}

Similar queries