latest price of multiple tokens

Returns the latest DEX trades on Ethereum and BNB Chain, where exchange address is 0xca14…0c73, base currency is 0x46d0…e86b, 0x0e09…ce82 or 3 more and quote currency is 0xbb4c…095c: quote price, count, trade amount, date date, base currency address, base currency name, quote currency address and 2 more fields.

By Maz · saved 26 November 2022 · run 75 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      date: {after: "2022-11-25"}
      options: {limitBy: {each: "baseCurrency.address", limit: 1},desc: "block.height"}
      exchangeAddress: {is: "0xca143ce32fe78f1f7019d7d551a6402fc5350c73"}
      baseCurrency: {in: ["0x46d0dac0926fa16707042cadc23f1eb4141fe86b","0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82","0xe9e7cea3dedca5984780bafc599bd69add087d56", "0x55d398326f99059ff775485246999027b3197955","0xcd40f2670cf58720b694968698a5514e924f742d"]}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      quotePrice
      count
      tradeAmount(in: USD)
      date {
        date
      }
      baseCurrency {
        address
        name
      }
      quoteCurrency {
        address
        name
      }
      block{
        height
      }
    }
  }
}

Similar queries