Uniswap OHLC data (5 minute candle , USDT/WETH)

Returns 100000 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0x05b3…220c and exchange name is Pancake, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By abc · saved 27 April 2021 · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: bsc) {
    dexTrades(
      options: {limit: 100000, asc: "timeInterval.minute"}
      date: {since: "2021-04-26"}
      exchangeName: {is: "Pancake"}
      baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
      quoteCurrency: {is: "0x05b339b0a346bf01f851dde47a5d485c34fe220c"}
    ) {
      timeInterval {
        minute(count: 1)
      }
      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      trades: count
      quotePrice
      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)
    }
    
  }
}

Similar queries