Top trades on a pool

Returns 10 DEX trades on Ethereum, where smart contract address is 0x5777…2168, date since 2022-05-30 and date till 2022-06-06, sorted by trade amount, highest first: timestamp time, block height, trade index, trade amount, full name, base amount, base currency address and 8 more fields.

By gaurav · saved 6 June 2022 · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $address: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "tradeAmount", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      smartContractAddress: {is: $address}
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      tradeIndex
      tradeAmount(calculate: sum, in: USD)
      exchange {
        fullName
      }
      baseAmount
      baseCurrency {
        address
        symbol
      }
      quoteAmount
      quoteCurrency {
        address
        symbol
      }
      transaction {
        hash
        txFrom {
          address
        }
      }
      exchange {
        fullName
      }
      taker {
        address
      }
      maker {
        address
      }
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "address": "0x5777d92f208679db4b9778590fa3cab3ac9e2168",
  "from": "2022-05-30",
  "till": "2022-06-06T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries