Get pair token

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where base currency is 0xca57…def0 and exchange name is Pancake: address address, block height, buy currency symbol, buy currency address, sell currency symbol and sell currency address.

By gaurav · saved 3 January 2022 · run 11 times · Bitquery API v1

What it returns

Filters

The query

query ($address: String!) {
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 10, desc: "block.height"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: $address}
    ) {
      smartContract {
        address {
          address
        }
      }
      block {
        height
      }
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
    }
  }
}

Variables

{
  "address": "0xca578afee65fd2268d383f8fc4a9fc6ae1d2def0"
}

Similar queries