results

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

By gaurav · saved 5 April 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 1, offset: 90000, asc: ["block.height", "tradeIndex"]}
      date: {after: "2022-03-26"}
      time: {since: "2022-03-27T03:00:00", till: "2022-03-27T04:00:00"}
    ) {
      block {
        height
        timestamp {
          unixtime
        }
      }
      transaction {
        hash
        __typename
        gasValue
        gasPrice
        gas
      }
      protocol
      exchange {
        fullName
      }
      smartContract {
        address {
          address
        }
        contractType
        currency {
          name
        }
      }
      tradeIndex
      date {
        date
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      quotePrice
      buyAmountInUsd: buyAmount(in: USD)
      sellAmountInUsd: sellAmount(in: USD)
      tradeAmount(in: USD)
      maker {
        address
      }
      taker {
        address
      }
    }
  }
}

Similar queries