VNDC/WBNB OHLC

Returns 6 DEX trades on Ethereum and BNB Chain, where base currency is 0xdde5…f24e, quote currency is 0xbb4c…095c and time since 2023-07-09, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 5 more fields.

By Divyasshree N · saved 14 December 2023 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 6, asc: "timeInterval.minute"}
      time: {since: "2023-07-09T17:00:00Z", till: "2023-08-09T18:00:00Z"}
      baseCurrency: {is: "0xdde5b33a56f3f1c22e5a6bd8429e6ad508bff24e"}
      quoteCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
    ) {
      timeInterval {
        minute(count:10)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      baseAmountInUSD: baseAmount(in: USD)
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      quoteAmountInUSD: quoteAmount(in: USD)
      trades: count
      quotePrice
      average_price: quotePrice(calculate: average)
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      open_price: minimum(of: block, get: quote_price)
      close_price: maximum(of: block, get: quote_price)
      averagePriceInUSD: expression(get: "quoteAmountInUSD/baseAmount")
    }
  }
}

Similar queries