Get Candle data for Eternal Cash BSC

Get Candle data

Returns 1000000 DEX trades on Ethereum and BNB Chain, where buy currency is 0x400d…f7ec, sell currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2, sorted by time interval minute: minute, buy currency symbol, buy currency address, buy amount, sell currency symbol, sell currency address, sell amount and 4 more fields.

By Cheslav · saved 17 November 2021 · run 3 times · Bitquery API v1

What it returns

Filters

The query

{
              ethereum(network: bsc) {
                dexTrades(options: {
                    limit: 1000000,
                    asc: "timeInterval.minute"
                },
                  date: {
                    since: "2021-11-16"
                  }
                  exchangeName: {in: ["Pancake", "Pancake v2"]},
                  buyCurrency: {is: "0x400df62c3052fdbaad8c74c0226147f9bfaaf7ec"},
                  sellCurrency: {is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}) {

                  timeInterval {
                    minute(count: 30)
                  }
                  buyCurrency {
                    symbol
                    address
                  }
                  buyAmount

                  sellCurrency {
                    symbol
                    address
                  }
                  sellAmount

                  trades: count

                  maximum_price: price(calculate: maximum)
                  minimum_price: price(calculate: minimum)
                  median_price: price(calculate: median)

                  open_price: minimum(of: block get: price)
                  close_price: maximum(of: block get: price)
                }
              }
            }

Variables

{
  "baseCurrency": "0x8c4b3dea4247f066f3aaff7273dc97e7d4187b04",
  "quoteCurrency": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c",
  "since": "2020-12-01T00:00:00.000Z",
  "till": "2021-05-24T17:00:00.000Z",
  "window": 60
}

Similar queries