Pancake kline

k线

Returns 100 DEX trades on Ethereum and BNB Chain, where base currency is 0x0e09…ce82, quote currency is 0xe9e7…7d56 and exchange name is Pancake or Pancake v2, sorted by time interval minute, highest first: minute, quote amount, quote price, minimum of block and maximum of block.

By misshuang · saved 2 July 2021 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query {
  ethereum(network: bsc) {
    dexTrades(options: {limit: 100, desc: "timeInterval.minute"},
		date: {since:"2013-11-01"}
		exchangeName: {in:["Pancake","Pancake v2"]},
		baseCurrency: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"},
		quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
    ) {
      timeInterval {
        minute(count: 5)
      }
      volume: quoteAmount
      high: quotePrice(calculate: maximum)
      low: quotePrice(calculate: minimum)
      open: minimum(of: block, get: quote_price)
      close: maximum(of: block, get: quote_price)
    }
  }
}

Variables

{
  "from": "2020-12-25T21:52:30+03:00",
  "to": "2021-12-30T23:59:30+03:00",
  "interval": 10,
  "baseAddress": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
  "quoteAddress": "0x55d398326f99059ff775485246999027b3197955"
}

Similar queries