Cowrie OHLC Query

Sitama WETH OHLC Query

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xDe51…9E9E: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Divyasshree N · saved 2 June 2023 · run 8 times · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String, $from: ISO8601DateTime!, $to: ISO8601DateTime!, $interval: Int) {
  ethereum(network: bsc) {
    dexTrades(baseCurrency: {is: $baseAddress}, date: {between: [$from, $to]}) {
      timeInterval {
        minute(format: "%FT%TZ", count: $interval)
      }
      buyCurrency: baseCurrency {
        symbol
        address
      }
      buyAmount: baseAmount
      sellCurrency: quoteCurrency {
        symbol
        address
      }
      volume: quoteAmount
      trades: count
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "from": "2023-05-20",
  "to": "2023-05-26",
  "interval": 30,
  "baseAddress": "0xDe51D1599339809CaFB8194189cE67d5BdcA9E9E"
}

Similar queries