top gainers in specific DEX filtered by minimum liquidity

Returns 10 DEX trades on Ethereum, where exchange name is Uniswap, date since 2023-07-19 and date till 2023-07-26, sorted by count, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 3 more fields.

By Divyasshree N · saved 26 July 2023 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int!, $offset: Int!, $exchange: String!, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      options: {desc: "count", limit: $limit, offset: $offset}
      date: {since: $from, till: $till}
      exchangeName: {is: $exchange}
      sellAmount: {gt: 1000}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      sell_amount_usd: sellAmount(in: USD)
      buyCurrency {
        symbol
        address
      }
      buyAmount
      buy_amount_usd: buyAmount(in: USD)
      count
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      dates: count(uniq: dates)
      started: minimum(of: date)
    }
  }
}

Variables

{
  "limit": 10,
  "offset": 0,
  "network": "ethereum",
  "exchange": "Uniswap",
  "from": "2023-07-19",
  "till": "2023-07-26T23:59:59",
  "dateFormat": "%Y-%m-%d"
}

Similar queries