If I try to query this:
query {
ethereum(network: bsc) {
dexTrades(
options: { desc: "timeInterval.minute" }
time: { till: "2021-05-25T00:10:00.000Z", since: "2021-05-25T00:00:00.000Z" }
# exchangeName: { is: "Pancake" }
baseCurrency: { is: "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"}
quoteCurrency: { is: "0xe9e7cea3dedca5984780bafc599bd69add087d56" }
) {
timeInterval {
minute(format: "%FT%TZ", count: 1)
}
baseCurrency {
symbol
address
}
baseAmount
quoteCurrency {
symbol
address
}
quoteAmount
trades: count
quotePrice
trade_amount_in_usd: tradeAmount(in: USD)
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)
}
}
}
All the results dexTrades items has trade_amount_in_usd
as 0.0
{
"data": {
"ethereum": {
"dexTrades": [
{
"timeInterval": {
"minute": "2021-05-25T00:10:00Z"
},
"baseCurrency": {
"symbol": "WBNB",
"address": "0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c"
},
"baseAmount": 16.58995730108414,
"quoteCurrency": {
"symbol": "BUSD",
"address": "0xe9e7cea3dedca5984780bafc599bd69add087d56"
},
"quoteAmount": 5834.909985498264,
"trades": 15,
"quotePrice": 351.71338175276423,
"trade_amount_in_usd": 0.0,
"maximum_price": 353.50634199771184,
"minimum_price": 350.84511795040396,
"open_price": "351.74098133694616",
"close_price": "351.74098133694616"
},
...
But this isn’t the case for, say, the data from yesterday.