Get market cap

Returns the latest address detail on Ethereum and BNB Chain, where address is 0xb09f…6b09, base currency is 0xb09f…6b09 and quote currency is 0x55d3…7955: annotation, address, contract type, attributes name, attributes value, currency symbol, currency name and 20 more fields.

By Hong · saved 27 December 2021 · run 31 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    address(address: {is: "0xb09fe1613fe03e7361319d2a43edc17422f36b09"}) {
      annotation
      address
      smartContract {
        contractType
        attributes {
          name
          value
        }
        currency {
          symbol
          name
          decimals
          tokenType
        }
      }
      balance
    }
    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: "0xb09fe1613fe03e7361319d2a43edc17422f36b09"}) {
        symbol
        name
        tokenId
      }
    }
    dexTrades(
      options: {limit: 1, desc: "block.height"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}
      baseCurrency: {is: "0xb09fe1613fe03e7361319d2a43edc17422f36b09"}
      quoteCurrency: {in: "0x55d398326f99059ff775485246999027b3197955"}
    ) {
      transaction {
        hash
      }
      block {
        height
      }
      buyCurrency {
        symbol
        address
      }
      sellCurrency {
        symbol
        address
      }
      buyAmount(calculate: maximum)
      sellAmount(calculate: maximum)
      any(of: time)
      exchange {
        name
      }
      tradeAmount(in: USD)
      side
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
    transactions
  }
}

Similar queries