getTokenUSDPrice

Returns the latest DEX trades on Ethereum and BNB Chain, where date since 2021-11-18: base currency symbol, block height, transaction index, quote currency symbol and quote price.

By sneha chopra · saved 18 November 2021 · run 13 times · Bitquery API v1

What it returns

Filters

The query

query
    {
      ethereum(network: bsc) {
        dexTrades(
          date: {since: "2021-11-18"}
          any: [{baseCurrency: {is: "0xB09FE1613fE03E7361319d2a43eDc17422f36B09"}, quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}}, {baseCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}, quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}}]
          options: {desc: ["block.height"], limitBy: {each: "baseCurrency.symbol", limit: 1}}
        ) {
          baseCurrency {
            symbol
          }
          block {
            height
          }
          transaction {
            index
          }
    
          quoteCurrency {
            symbol
          }
          quote: quotePrice
        }
      }
    }

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "bsc",
  "token": "0xf8fc63200e181439823251020d691312fdcf5090"
}

Similar queries