Toto trades

Returns the latest 10 DEX trades on Ethereum and BNB Chain, where smart contract address is 0x8f89…3ed2: timestamp time, block height, trade index, protocol, full name, address address, annotation and 6 more fields.

By gaurav · saved 27 December 2023 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: 10}
      smartContractAddress: {is: "0x8f8941921b4eb7d0a13ca620298667b7b4ac3ed2"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      sellCurrency {
        address
        symbol
      }
    }
  }
}

Similar queries