total supply - latest price - WETH on BSC

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

Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0x2170…33f8, quote currency is 0x8AC7…580d 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 lukas · saved 27 July 2022 · run 131 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: "0x2170ed0880ac9a755fd29b2688956bd959f933f8"}
      quoteCurrency: {is: "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d"}
      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: "0x2170ed0880ac9a755fd29b2688956bd959f933f8"}) {
        symbol
        name
      } 
    }
  }
}

Similar queries