bsc price change for last 24 hours

Returns 100 DEX trades on Ethereum and BNB Chain, where quote currency is 0xbb4c…095c, date since 2024-10-18 and price asymmetry is below 0.01, sorted by final, highest first: count, base currency name, base currency address, quote currency name, quote currency address, address address, minimum of block and 2 more fields.

By gaurav · saved 19 October 2024 · run 1 time · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
      date: {since: "2024-10-18"}
      options: {limit: 100, desc: "final", limitBy: {each: "baseCurrency.address", limit: 1}}
      priceAsymmetry: {lt: 0.01}
    ) {
      count
      baseCurrency {
        name
        address
      }
      quoteCurrency {
        name
        address
      }
      smartContract {
        address {
          address
        }
      }
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      open_price_time: minimum(of: block, get: time)
      close_price_time: maximum(of: block, get: time)
      diff: expression(get: "close_price - open_price")
      div: expression(get: "diff / open_price")
      final: expression(get: "div * 100")
    }
  }
}

Similar queries