Mati_Candle

Returns DEX trades on Ethereum and Polygon, where exchange address is 0x1090…95C9, base currency is 0xcC1B…28Fc and quote currency is 0xc1c9…EEAE, sorted by time interval minute: minute, quote price, minimum of block, maximum of block, address address and full name.

By edinson · saved 12 February 2022 · run 2 times · Bitquery API v1

What it returns

Filters

The query

query GetCandleData($baseCurrency: String!, $since: ISO8601DateTime, $till: ISO8601DateTime, $quoteCurrency: String!, $window: Int) {
  ethereum(network: matic) {
    dexTrades(
      exchangeAddress: {is: "0x10908C875D865C66f271F5d3949848971c9595C9"}
      options: {asc: "timeInterval.minute"}
      date: {since: $since, till: $till}
      baseCurrency: {is: $baseCurrency}
      quoteCurrency: {is: $quoteCurrency}
    ) {
      timeInterval {
        minute(count: $window, format: "%Y-%m-%dT%H:%M:%SZ")
      }
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
      exchange {
        address {
          address
        }
        fullName
      }
    }
  }
}

Variables

{
  "baseCurrency": "0xcC1B9517460D8aE86fe576f614d091fCa65a28Fc",
  "since": "2022-01-21T01:03:00Z",
  "till": "2022-02-11T00:05:00Z",
  "quoteCurrency": "0xc1c93D475dc82Fe72DBC7074d55f5a734F8cEEAE",
  "window": 1
}

Similar queries