Latest trade of a token on bsc

Latest trade of a token

Returns the latest DEX trade on Ethereum and BNB Chain, where base currency is 0x800a…cc3c: quote price, timestamp time, block height, trade index, protocol, full name, address address and 8 more fields.

By Zotish · saved 7 March 2023 · run 6 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      baseCurrency: {is: "0x800a25741a414ea6e6e2b382435081a479a8cc3c"}
    ) {
      quotePrice
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
    }
  }
}

Similar queries