first 200 trades for a given smart contract address

Returns 200 DEX trades on Ethereum, where smart contract address is 0x0138…520e, date since 2020-01-01 and date till 2100-01-01, sorted by block height trade index: protocol, taker address, maker address, trade index, block height, timestamp time, sell currency address and 5 more fields.

By gaurav · saved 8 July 2022 · run 9 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {limit: 200 asc: ["block.height", "tradeIndex"]}
      smartContractAddress: {is: "0x01388f9242964e2aaadef6379eb92276acb5520e"}
      date: {since: "2020-01-01", till: "2100-01-01"}
    ) {
      protocol
      taker {
        address
      }
      maker {
        address
      }
      tradeIndex
      block {
        height
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
      }
      sellCurrency {
        address
        symbol
      }
      sellAmount
      buyCurrency {
        address
        symbol
      }
      buyAmount
    }
  }
}

Similar queries