Latest trade of a token

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

By gaurav · saved 19 January 2022 · run 586 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 1}
      baseCurrency: {is: "0xf4d2888d29d722226fafa5d9b24f9164c092421e"}
    ) {
      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