Trades for a pair on the Pancake DEX

Trades for a specific pair on the Pancake DEX

Returns the latest DEX trades on Ethereum and BNB Chain, where smart contract address is 0xbd1e…2ffa and exchange name is Pancake: transaction hash, transaction index, second, block height, buy amount, buy currency symbol, buy currency address and 3 more fields.

By Nasho · saved 16 April 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: "block.height"}
      exchangeName: {is: "Pancake"}
      smartContractAddress: {is: "0xbd1ec00b0d1cca9d5b28fbe0bb7d664238af2ffa"}
      height: {
        between: [6601336, 6603500]
      }
    ) {
      transaction {
        hash
        index
      }
      timeInterval {
        second
      }
      block {
        height
      }
      buyAmount
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellCurrency {
        symbol
        address
      }
    }
  }
}

Similar queries