buyCurrency & quoteCurrency pair by Smart Contract Token Address

Returns the latest 10 DEX trades on Ethereum, where smart contract address is 0x88e6…5640 and date since 2021-09-01: timestamp time, block height, full name, buy amount, buy currency address, buy currency symbol, sell amount and 3 more fields.

By Sayon · saved 16 September 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: ethereum) {
    dexTrades(
      options: {desc: ["block.height"], limit: 10, offset: 0}
      date: {since: "2021-09-01", till: null}
      smartContractAddress: {is: "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640"}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      exchange {
        fullName
      }
      buyAmount
      buyCurrency {
        address
        symbol
      }
      sellAmount
      sellCurrency {
        address
        symbol
      }
      transaction {
        hash
      }
      exchange {
        fullName
      }
    }
  }
}

Similar queries