dex_sample1

Returns the latest 1000 DEX trades on Ethereum, where time since 2024-04-18 and time till 2025-04-18: timestamp time, block height, trade index, protocol, full name, address address, annotation and 7 more fields.

By Tender · saved 18 April 2024 · run 118 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: ["block.height", "tradeIndex"], limit: $limit, offset: $offset}
      time: {since: $from, till: $till}
    ) {
      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
      }
    }
  }
}

Variables

{
  "limit": 1000,
  "offset": 0,
  "network": "ethereum",
  "from": "2024-04-18T17:57:16.000Z",
  "till": "2025-04-18T18:27:16.999Z",
  "dateFormat": "%Y-%m-%d"
}

Similar queries