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

Returns 5 DEX trades on Ethereum and Polygon, where base currency is 0xD6DF…C90B, quote currency is 0x0d50…1270 and exchange name is QuickSwap, 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 Krunal · saved 5 March 2021 · run 4 times · Bitquery API v1

What it returns

Filters

The query

{
ethereum(network: matic){
    dexTrades(
      options: {limit: 5, asc: "timeInterval.minute"}
      date: {since: "2020-11-01"}
      exchangeName: {is: "QuickSwap"}
      baseCurrency: {is: "0xD6DF932A45C0f255f85145f286eA0b292B21C90B"}
      quoteCurrency: {is: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      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