dfdfd

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where smart contract address is 0xea6e…36f7: buy amount, buy currency address, buy currency name, buy currency symbol, sell amount, sell currency address, sell currency name and 6 more fields.

By Omkar_BQ · saved 27 November 2023 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: bsc) {
    dexTrades(
      smartContractAddress: {is: "0xea6e8e5e0a4b248b6d5f0dd1fbf90b183a5036f7"}
      options: {limit: 10, desc: "block.height"}
    ) {
      buyAmount
      buyCurrency {
        address
        name
        symbol
      }
      sellAmount
      sellCurrency {
        address
        name
        symbol
      }
      transaction {
        gasPrice
        gasValue
        hash
      }
      sellAmountUSD: sellAmount(in: USD)
      buyAmountUSD: buyAmount(in: USD)
      sellAmountUSDPrice: expression(get: "sellAmountUSD / buyAmount")
      BuyAmountUSDPrice: expression(get: "buyAmountUSD / sellAmount")
      block {
        height
      }
    }
  }
}

Similar queries