miestabien

Returns the latest 50 DEX trades on Ethereum, where base currency is 0xC4E4…2Cb3: block height, unixtime, transaction hash, sell currency symbol, buy currency symbol, buy amount, sell amount and 2 more fields.

By Dmitry Kovalchuk · saved 13 July 2023 · run 11 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {is: "0xC4E4f65e4ec6caeb0D7cA9962bde1Edf8C402Cb3"}
      options: {desc: "block.height", limit: 50}
    ) {
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
      }
      sellCurrency {
        symbol
      }
      buyCurrency {
        symbol
      }
      buyAmount
      sellAmount
      side
      tradeAmount(in: USD)
    }
  }
}

Similar queries