Here is the query:
{
ethereum(network: bsc) {
dexTrades(
options: { asc: ["timeInterval.minute"] }
time: { since: "2021-06-22T16:22" }
exchangeName: {is: "Pancake"}
quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"}
) {
timeInterval {
minute(count: 5)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
tradeAmount(in: USD)
quotePrice
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)
}
}
}
I expect to see a 5 minute breakdown from the last hour… instead I see a 5 minute breakdown for the entire day. I’ve tried since/till, after, between. Can’t get it to resolve based on time.