QuickSwap OHLC data on Polygon

Returns 100 DEX trades on Ethereum and Polygon, where base currency is 0x0000…fa1c, 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 gaurav · saved 12 August 2021 · run 2 times · Bitquery API v1

What it returns

Filters

The query

{
  ethereum(network: matic) {
    dexTrades(
      options: {limit: 100, asc: "timeInterval.minute"}
      date: {since: "2021-08-11"}
      exchangeName: {is: "QuickSwap"}
      baseCurrency: {is: "0x0000000000004946c0e9f43f4dee607b0ef1fa1c"}
      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