jnjn

Returns the latest 10 DEX trades on Ethereum, where tx hash is 0xf96f…517f: timestamp time, block height, base currency address, quote currency address and quote price.

By Omkar Acharekar · saved 20 April 2023 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $hash: String!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height"], limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      txHash: {is: $hash}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      baseCurrency{
        address
      }
      quoteCurrency{
        address
      }
      
      quotePrice
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "hash": "0xf96fc231a2fd01ccc326b131cfd23c0ff2eb5d8d6198be38faf6132840ed517f"
}

Similar queries