My OHLC DATA

OHLC data to feed to trading view

Returns DEX trades on Ethereum and Polygon, where base currency is 0x2791…4174, quote currency is 0x6Ba8…0d9E and exchange name is Uniswap: minute, quote amount, quote price, minimum of block and maximum of block.

By OlegOleg8 · saved 2 March 2023 · run 20 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: matic) {
    dexTrades(
      baseCurrency: {is: "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"}
      quoteCurrency: {is: "0x6Ba825d33a616EFC1Dd915C5b89bD2ED824d0d9E"}
      exchangeName: {is: "Uniswap"}
    ) {
      timeInterval {
        minute(format: "%FT%TZ", count: 15)
      }
      volume: quoteAmount(in: USD)
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries