good evening,
i am using this query to get
address, name, symbol, latest price, daily trading volume, and the previous price from 24 hours ago.
for example 2022/05/15 hour 10.30> 2022/05/14 hour 10.30
(but the latter two don’t work) where am I wrong?
{
ethereum(network: bsc) {
list1: dexTrades(
options: {limitBy: {each: "baseCurrency.symbol", limit: 1}, desc: ["block.timestamp.time", "tradeIndex","timeInterval.day"]}
exchangeName: {in: ["Pancake","Pancake v2"]},
quoteCurrency: {in: ["0x55d398326f99059ff775485246999027b3197955"]}
time: {since: "2022-05-15T00:00:00"}
) {
timeInterval {
day(count: 1)
}
baseCurrency {
address
symbol
name
}
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
tradeIndex
trades: count
tradeAmount(in: USD)
quoteAmount
quotePrice
close_price: maximum(of: block, get: quote_price)
quoteCurrency {
address
symbol
name
}
}
}
}