Information Pool

Returns one DEX trade on Ethereum and BNB Chain, where smart contract address is 0x7212…5a40, date since 2022-04-06 and date till 2022-04-07, sorted by block height transaction index, highest first: count, trade amount, date date, full name, exchange name, full name with ID, base currency symbol and 19 more fields.

By edinson · saved 29 March 2022 · run 13 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    info: dexTrades(
      options: {desc: "count"}
      smartContractAddress: {is: "0x72121d60b0e2f01c0fb7fe32ca24021b42165a40"}
      date: {since: "2022-04-06", till: "2022-04-07"}
    ) {
      count
      tradeAmount(in: USD)
    }
    dexTrades(
      smartContractAddress: {is: "0x72121d60b0e2f01c0fb7fe32ca24021b42165a40"}
      options: {desc: ["block.height", "transaction.index"], limit: 1}
      
    ) {
      date {
              date
            }
            exchange {
              fullName
              name
              fullNameWithId
            }
            baseCurrency {
              symbol
              name
              decimals
              tokenType
              address
            }
            quoteCurrency {
              symbol
              name
              decimals
              address
            }
            transaction {
              index
            }
            block {
              height
              timestamp {
                time(format: "%Y-%m-%d %H:%M:%S")
              }
            }
            trades: count
            tradeAmount(in: USD)
            sellAmount(in: USD)
            buyAmount(in: USD)
            tradeIndex
            volume: quoteAmount
            maximum_price: quotePrice(calculate: maximum)
            minimum_price: quotePrice(calculate: minimum)
            open_price: minimum(of: block, get: quote_price)
            close_price: maximum(of: block, get: quote_price)
            baseAmount
            side
            quotePrice
    }
  }
}

Similar queries