https://bitquery.zendesk.com/agent/tickets/680

Returns one DEX trade on Ethereum and Polygon, where maker or taker is 0xdf92…ac78 and time since 2021-10-01, sorted by trade index block height, highest first: trade index, block height, iso8601, trade amount and count.

By Sayon Sai Dutta · saved 14 June 2022 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: matic) {
    dexTrades(
      # smartContractAddress: {is: "0xdf921b839c26671335ea70bc52cc9750613bac78"}
      makerOrTaker: {in: ["0xdf921b839c26671335ea70bc52cc9750613bac78"]}
      time: {since: "2021-10-01"}
      options: {limit: 1, desc: ["tradeIndex", "block.height"]}
    ) {
      # timeInterval {
      #   day(count: 1)
      # }
      tradeIndex
      block{
        height
        timestamp{
          iso8601
        }
      }
      tradeAmount(in: USD)
      trades: count,
    }
  }
}

Similar queries