Query for 4h OHLC canles BUSD/BNB on PancakeSwap v2
Returns 10000000 DEX trades on Ethereum and BNB Chain, where base currency is 0xbb4C…095c, quote currency is 0xe9e7…7d56 and exchange name is Pancake or Pancake v2, sorted by time interval hour: hour, base currency symbol, base currency address, base amount, quote currency symbol, quote currency address, quote amount and 4 more fields.
What it returns
- hour
- base currency symbol
- base currency address
- base amount
- quote currency symbol
- quote currency address
- quote amount
- count
- quote price
- minimum of block
- maximum of block
Filters
- base currency is 0xbb4C…095c
- quote currency is 0xe9e7…7d56
- exchange name is Pancake or Pancake v2
- date since 2018-01-23
The query
{
ethereum(network: bsc) {
dexTrades(
options: {limit: 10000000, asc: "timeInterval.hour"}
date: {since: "2018-01-23"}
exchangeName: {in: ["Pancake", "Pancake v2"]}
baseCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
quoteCurrency: {is: "0xe9e7cea3dedca5984780bafc599bd69add087d56"}
) {
timeInterval {
hour(count: 4)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
quotePrice
maximum_price: quotePrice(calculate: maximum)
minimum_price: quotePrice(calculate: minimum)
open_price: minimum(of: block, get: quote_price)
close_price: maximum(of: block, get: quote_price)
}
}
}
Similar queries
- Latest DODO DEX swaps on BSC · BNB Chain · DEXTrades
- Top DODO liquidity pools by 24h volume on BSC · BNB Chain · DEXTrades
- trades · Ethereum · DEXTrades
- metric_v1_bsc · BNB Chain · DEXTrades
- bsc_tessera · BNB Chain · DEXTrades