BIT2048 Trades for a specific token on the Pancake DEX

Returns the latest DEX trade on Ethereum and BNB Chain, where smart contract address is 0x1b96…774f and exchange name is Pancake or Pancake v2: transaction hash, gas value, address address, contract type, currency name, trade index, date date and 8 more fields.

By Sayon · saved 20 June 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, desc: "block.height"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      smartContractAddress: {is: "0x1b96b92314c44b159149f7e0303511fb2fc4774f"}
    ) {
      transaction {
        hash
        gasValue
      }
      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)
    }
  }
}

Similar queries