expression in desc

Returns 50 DEX trades on Ethereum and BNB Chain, where quote currency is 0xbb4c…095c, time since 20211201 and trade amount USD is above 10, sorted by close price aq open price, highest first: base currency name, base currency address, base currency symbol, trade amount, minimum of block and maximum of block.

By gaurav · saved 20 December 2021 · run 14 times · Bitquery API v1

What it returns

Filters

The query

query GetTopGainers {
  ethereum(network: bsc) {
    dexTrades(
      options: {desc: "close_price / _aq.open_price", limit: 50}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      time: {since: "20211201"}
      tradeAmountUsd: {gt: 10}
    ) {
      baseCurrency {
        name
        address
        symbol
      }
      tradeAmount(in: USD)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries