kajame-test

Test

Returns DEX trades on Ethereum, where base currency is 0x95ad…c4ce, quote currency is 0xdac1…1ec7 and date since 2022-06-01, sorted by block height transaction index, highest first: block height, timestamp time, transaction index, base currency symbol, quote currency symbol and quote price.

By kajame · saved 1 July 2022 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      baseCurrency: {in: ["0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce"]}
      quoteCurrency: {is: "0xdac17f958d2ee523a2206206994597c13d831ec7"}
      options: {desc: ["block.height", "transaction.index"]}
      date: {since: "2022-06-01", till: "2022-07-01"}
    ) {
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      transaction {
        index
      }
      baseCurrency {
        symbol
      }
      quoteCurrency {
        symbol
      }
      quotePrice
    }
  }
}

Similar queries