Copy of Pancake all swaps of a pool

Pancake all swaps

Returns the latest DEX trade on Ethereum and BNB Chain, where smart contract address is 0xB802…f427 and exchange name is Pancake: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By Archie · saved 6 August 2022 · run 30 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: "block.height"}
      exchangeName: {is: "Pancake"}
      smartContractAddress: {is: "0xB8027400C5d4066dE1bDDb619bAbA90118F5f427"}
    ) {
      transaction {
        hash
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      block {
        height
      }
      buyAmount
      buyAmountInUsd: buyAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellAmountInUsd: sellAmount(in: USD)
      sellCurrency {
        symbol
        address
      }
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      transaction {
        gasValue
        gasPrice
        gas
      }
    }
  }
}

Similar queries