vol 24

Returns one DEX trade on Ethereum and BNB Chain, where quote currency is 0xbb4c…095c, 0x55d3…7955 or 1 more, time till 2024-03-20 and date after 2024-03-18, sorted by trade amount, highest first: hour, base currency symbol, base currency name, decimals, base currency address, quote currency name, quote currency address and 7 more fields.

By gaurav · saved 20 March 2024 · run 23 times · Bitquery API v1

What it returns

Filters

The query

query ($network: EthereumNetwork!, $limit: Int, $from: ISO8601DateTime, $till: ISO8601DateTime) {
  ethereum(network: $network) {
    dexTrades(
      quoteCurrency: {in: ["0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c", "0x55d398326f99059ff775485246999027b3197955", "0xe9e7cea3dedca5984780bafc599bd69add087d56"]}
      time: {since: $from, till: $till}
      date: {after: "2024-03-18"}
      options: {limit: $limit, desc: "tradeAmount", limitBy: {each: "baseCurrency.address, quoteCurrency.address", limit: 1}}
      priceAsymmetry: {lt: 0.001}
    ) {
      timeInterval {
        hour(count: 24)
      }
      baseCurrency {
        symbol
        name
        decimals
        address
      }
      quoteCurrency {
        name
        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")
      count
      tradeAmount(in: USD)
      quotePrice
      quoteAmount
      volume: quoteAmount(in: USD)
    }
  }
}

Variables

{
  "baseCurrency": "0xd6fDDe76B8C1C45B33790cc8751D5b88984c44ec",
  "network": "bsc",
  "limit": 1,
  "From": "2024-03-19T16:32:54",
  "till": "2024-03-20T16:32:54"
}

Similar queries