Copy of GetDex

Returns 10000 DEX trades on Ethereum and BNB Chain, where time since 2022-03-26 and time till 2022-03-26, sorted by block height trade index: block height, unixtime, transaction hash, gas value, gas price, gas, protocol and 16 more fields.

By Hong · saved 5 April 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $since: ISO8601DateTime, $till: ISO8601DateTime, $limit: Int, $offset: Int) {
  ethereum(network: $network) {
    dexTrades(
      options: {limit: $limit, offset: $offset, asc: ["block.height", "tradeIndex"]}
      time: {since: $since, till: $till}
    ) {
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
        __typename
        gasValue
        gasPrice
        gas
      }
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
      }
      price
      buyAmountInUsd: buyAmount(in: USD)
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      maker {
        address
      }
      taker {
        address
      }
    }
  }
}

Variables

{
  "network": "bsc",
  "since": "2022-03-26T01:00:00.000Z",
  "till": "2022-03-26T02:00:00.000Z",
  "limit": 10000,
  "offset": 0
}

Similar queries