OHLC price for an uniswap pair

Returns pairs, where market program is 0xe055…939f, market network is Ethereum and market protocol family is Uniswap, sorted by interval time end, highest first: start, end, open, high, low, close, token name and 5 more fields.

By Kshitij Mahajan · saved 5 August 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  Trading(dataset:realtime) {
    Pairs(
      where: {
        Market: {
          Network: {is: "Ethereum"} 
          ProtocolFamily: {is: "Uniswap"}
          Program: {is: "0xe0554a476a092703abdb3ef35c80e0d76d32939f"}
        }
        Interval: {Time: {Duration: {eq: 60}}}
      }
      orderBy: {descending: Interval_Time_End}
    ) {
      Interval{
        Time{
          Start
          End
        }
      }
      Price{
        Ohlc{
          Open
          High
          Low
          Close
        }
      }
      Token{
        Name
        Symbol
        Address
      }
      QuoteToken{
        Name
        Symbol
        Address
      }
    }
  }
}

Similar queries