pancake-uni-newpairs

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is BNB and protocol is Pancake or Uniswap: timestamp time, base currency symbol, base currency address, quote currency symbol, quote currency address, transaction hash and quote price.

By mtoo · saved 15 November 2024 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, desc: "block.timestamp.time"}
      baseCurrency: {is: "BNB"}
      protocol: {in: ["Pancake", "Uniswap"]}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      transaction {
        hash
      }
      quotePrice
    }
  }
}

Variables

{
  "token": "0x55d398326f99059ff775485246999027b3197955"
}

Similar queries