total supply - latest price - WETH on Uniswap

get the latest price/swap for tokens and total supply (minted - burned)

Returns one DEX trade on Ethereum, where base currency is 0x2541…89d6, quote currency is 0xC02a…6Cc2 and amount is above 0, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol, quote price, amount and 2 more fields.

By Emmanuel Ajala · saved 10 May 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0x2541A36BE4cD39286ED61a3E6AFC2307602489d6"}
      quoteCurrency: {is: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
    transfers(date: {since: null, till: null}, amount: {gt: 0}) {
      minted: amount(
        calculate: sum
        sender: {is: "0x0000000000000000000000000000000000000000"}
      )
      burned: amount(
        calculate: sum
        receiver: {is: "0x0000000000000000000000000000000000000000"}
      )
      currency(currency: {is: "0x2541A36BE4cD39286ED61a3E6AFC2307602489d6"}) {
        symbol
        name
      } 
    }
  }
}

Similar queries