Trades for a specific token on the Pancake DEX

Returns the latest DEX trades on Ethereum and BNB Chain, where base currency is 0xd158…c5d2, exchange name is Pancake and date after 2021-03-28: transaction hash, address address, contract type, currency name, trade index, date date, block height and 10 more fields.

By AnkushSharma · saved 26 April 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: "block.height"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0xd1587ee50e0333f0c4adcf261379a61b1486c5d2"}
      date: {after: "2021-03-28"}
    ) {
      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