alert query

Returns the latest 5000 DEX trades on Ethereum and BNB Chain, where date since 2021-10-15 and date till 2021-10-15: timestamp time, block height, trade index, protocol, buy amount, buy currency symbol, buy currency address and 6 more fields.

By gaurav · saved 15 October 2021 · run 1 time · 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}
      date: {since: $from, till: $till}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      protocol
      buyAmount
      buyCurrency {
        symbol
        address
      }
      sellAmount
      sellCurrency {
        symbol
        address
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      smartContract {
        address {
          address
        }
      }
    }
  }
}

Variables

{
  "limit": 5000,
  "offset": 0,
  "network": "bsc",
  "from": "2021-10-15T07:55:00",
  "till": "2021-10-15T07:55:59"
}

Similar queries