Price of all token in 1 query

Price of all tokens in 1 query

Returns the latest DEX trade 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 28 July 2021 · run 11 times · Bitquery API v1

What it returns

Filters

The query

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

Similar queries