Latest Price of a Token

Trades for a specific token on the Pancake DEX

Returns the latest 50 DEX trades on Ethereum and BNB Chain, where base currency is 0x6679…B360, quote currency is 0xbb4c…095c and exchange name is MDEX LP Token: transaction hash, trade index, address address, contract type, currency name, date date, block height and 10 more fields.

By Ahmed Mhamdi · saved 30 January 2025 · run 33 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 50}
      exchangeName: {is: "MDEX LP Token"}
      baseCurrency: {is: "0x6679eB24F59dFe111864AEc72B443d1Da666B360"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      date: {after: "2021-04-28"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      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