poocoin ohlc

Returns DEX trades on Ethereum and BNB Chain, where base currency is 0xb27a…97cc, quote currency is 0xbb4C…095c and exchange name is Pancake v2: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By gaurav · saved 23 December 2021 · run 32 times · Bitquery API v1

What it returns

Filters

The query

query ($baseAddress: String, $quoteAddress: String, $from: ISO8601DateTime!, $interval: Int, $exchangeName: String) {
  ethereum(network: bsc) {
    dexTrades(
      baseCurrency: {is: $baseAddress}
      quoteCurrency: {is: $quoteAddress}
      time: {since: $from}
      exchangeName: {is: $exchangeName}
      priceAsymmetry: {lt: 10}
      tradeAmountUsd: {gt: 1}
      
    ) {
      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": "2021-12-17T00:00:00",
  "interval": 1440,
  "baseAddress": "0xb27adaffb9fea1801459a1a81b17218288c097cc",
  "quoteAddress": "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",
  "exchangeName": "Pancake v2"
}

Similar queries