Pancake OHLC data

Returns one DEX trade on Ethereum and BNB Chain, where base currency is 0xFaa4…66Ac, quote currency is 0xbb4c…095c and exchange name is Pancake or Pancake v2, sorted by time interval minute: minute, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.

By Carlo · saved 6 May 2021 · run 22 times · Bitquery API v1

What it returns

Filters

The query


  {
  ethereum(network: bsc) {
    dexTrades(options: {asc: "timeInterval.minute", limit: 1}, 
			date: {is: "2021-05-05T18:16:41"}
      exchangeName: {in: ["Pancake", "Pancake v2"]}, 
      baseCurrency: { is: "0xFaa41A7DB72f0cB466De97df78A021D17DF966Ac"}, 
      quoteCurrency: { is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c" }) {
      
      timeInterval {
        minute(count: 1)
      }

      baseCurrency {
        symbol
        address
      }
      baseAmount
      quoteCurrency {
        symbol
        address
      }
      quoteAmount
      quotePrice
      USD: tradeAmount(in: USD, calculate: sum)
      maximum_price: quotePrice(calculate: maximum)
      minimum_price: quotePrice(calculate: minimum)
      median_price: quotePrice(calculate: median)
      open_price: minimum(of: block get: quote_price)
      close_price: maximum(of: block get: quote_price)
  
    }
  }
}

Variables

{
"datetime": "2021-05-05T18:16:41",
"baseAddress": "0xFaa41A7DB72f0cB466De97df78A021D17DF966Ac",
"quoteAddress": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
}

Similar queries