Albert Telegram Query 21-04-2022

Returns 10 DEX trades on Ethereum and BNB Chain, where date since 2022-04-20 and date till 2022-04-20, sorted by count trade amount, highest first: sell currency symbol, sell currency address, sell amount, buy currency symbol, buy currency address, buy amount, count and 3 more fields.

By Sayon Sai Dutta · saved 21 April 2022 · Bitquery API v1

What it returns

Filters

The query

query ($past: ISO8601DateTime!, $current: ISO8601DateTime!) {
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: ["count", "tradeAmount"], limit: 10}
      date: {since: $past, till: $current}
    ) {
      sellCurrency {
        symbol
        address
      }
      sellAmount
      buyCurrency {
        symbol
        address
      }
      buyAmount
      count
      tradeAmount(in: USD)
      median_price: price(calculate: median)
      last_price: maximum(of: block, get: price)
      # dates: count(uniq: dates)
      # started: minimum(of: date)
    }
  }
}

Variables

{
  "past": "2022-04-20T02:05:00",
  "current":"2022-04-20T02:15:00"
  
}

Similar queries