Trades for a specific time on Ethereum

Returns the latest 10 DEX trades on Ethereum, where time since 2023-07-17 and time till 2023-07-17: timestamp time, block height, trade index, protocol, full name, address address, annotation and 8 more fields.

By Vishal · saved 17 June 2024 · run 21 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: { desc: ["block.height", "tradeIndex"], limit: 10, offset: 0 }
      time: { since: "2023-07-17T00:00:00", till: "2023-07-17T23:59:59" }
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
          annotation
        }
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      buy_amount_usd: buyAmount(in: USD)
      sellAmount
      sellCurrency {
        address
        symbol
      }
      sell_amount_usd: sellAmount(in: USD)
      transaction {
        hash
      }
      PriceInUSD1: expression(get: "buy_amount_usd / buyAmount")
      PriceInUSD2: expression(get: "sell_amount_usd / buyAmount")
    }
  }
}

Similar queries