Uniswap OHLC data (5 minute candle , STRX/BUSDT)

Returns 60 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4c…095c, date since 2023-10-10 and date till 2023-10-10, sorted by time interval minute: minute, base currency address, quote currency address, quote amount, quote price, minimum of block and maximum of block.

By Eric Otto · saved 15 October 2023 · run 31 times · Bitquery API v1

What it returns

Filters

The query

query getLegacyTokenCandles(
  $interval: Int
  $limit: Int
  $baseCurrency: String
  $quoteCurrency: String
  $since: ISO8601DateTime
  $till: ISO8601DateTime
) {
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: $limit, asc: "timeInterval.minute"}
      date: {since: $since till: $till}
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
      priceAsymmetry: {lt: 1}
      tradeAmountUsd: {gt: 10}
    ) {
      timeInterval {
        minute(count: $interval)
      }
      baseCurrency {
        address
      }
      quoteCurrency {
        address
      }
    	v: quoteAmount
      h: quotePrice(calculate: maximum)
      l: quotePrice(calculate: minimum)
      o: minimum(of: block, get: quote_price)
      c: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "interval": 1,
  "limit": 60,
  "baseCurrency": "0xd6fdde76b8c1c45b33790cc8751d5b88984c44ec",
  "baseCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "since": "2023-10-10T06:00:00.000Z",
  "till": "2023-10-10T06:00:00.000Z"
}

Similar queries