WMATIC prices

Returns 1000 DEX trades on Ethereum and Polygon, where base currency is 0x0d50…1270, quote currency is 0xc213…8e8F and date since 2024-07-31, sorted by time interval second: second, quote amount, quote price, minimum of block and maximum of block.

By Xinjiang · saved 2 August 2024 · Bitquery API v1

What it returns

Filters

The query

query MyQuery {
  ethereum(network: matic) {
    dexTrades(
      options: {asc: "timeInterval.second", limit: 1000}
      date: {since: "2024-07-31T17:16:02.753Z", till: "2024-08-01T17:16:02.753Z"}
      baseCurrency: {is: "0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"}
      quoteCurrency: {is: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}
    ) {
      timeInterval {
        second(count: 5, format: "%Y-%m-%dT%H:%M:%SZ")
      }
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Similar queries