Latest price of all tokens against BNB

Returns the latest 250 DEX trades on Ethereum and BNB Chain, where base currency is not 0xbb4c…095c, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2: transaction hash, trade index, address address, contract type, currency name, block height, base currency symbol and 4 more fields.

By gaurav · saved 13 August 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height","tradeIndex"], limit: 250
      limitBy: {each: "baseCurrency.address" limit:1}}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {not: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      date: {after: "2021-08-12"}
    ) {
      transaction {
        hash
      }
      tradeIndex
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      block {
        height
      }
      baseCurrency {
        symbol
        address
      }
      quoteCurrency {
        symbol
        address
      }
      quotePrice
   
    }
  }
}

Similar queries