I executed this query to get the oldest price of CAKE with respect to WBNB
{
ethereum(network: bsc) {
dexTrades(
baseCurrency: {is: "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"} #CAKE
quoteCurrency: {is: "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"} #WBNB
options: {asc: ["block.height", "transaction.index"], limit: 20}
) {
block {
height
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
}
transaction {
index
}
baseCurrency {
symbol
}
quoteCurrency {
symbol
}
quotePrice
}
}
}
The relative price data shows inconsistent and extremely small values for the first few rows. The same issue happens with many other tokens in USDT.
{
"ethereum": {
"dexTrades": [
{
"block": {
"height": 701536,
"timestamp": {
"time": "2020-09-22 12:06:28"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 0.02004028016071021
},
{
"block": {
"height": 702046,
"timestamp": {
"time": "2020-09-22 12:31:58"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 0.020240482559122298
},
{
"block": {
"height": 702140,
"timestamp": {
"time": "2020-09-22 12:36:40"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 808.0124267256822
},
{
"block": {
"height": 702222,
"timestamp": {
"time": "2020-09-22 12:40:46"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 35993005.19855432
},
{
"block": {
"height": 702232,
"timestamp": {
"time": "2020-09-22 12:41:16"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 43186025.66543202
},
{
"block": {
"height": 702239,
"timestamp": {
"time": "2020-09-22 12:41:37"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 46543903.74455591
},
{
"block": {
"height": 702279,
"timestamp": {
"time": "2020-09-22 12:43:37"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 49511973.202246964
},
{
"block": {
"height": 702307,
"timestamp": {
"time": "2020-09-22 12:45:01"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 65203430.749742344
},
{
"block": {
"height": 702346,
"timestamp": {
"time": "2020-09-22 12:46:58"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 94665436.07768796
},
{
"block": {
"height": 702397,
"timestamp": {
"time": "2020-09-22 12:49:31"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 113311580.9310489
},
{
"block": {
"height": 702569,
"timestamp": {
"time": "2020-09-22 12:58:07"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 119960751.0015658
},
{
"block": {
"height": 702716,
"timestamp": {
"time": "2020-09-22 13:05:28"
}
},
"transaction": {
"index": 0
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 108502806.3315455
},
{
"block": {
"height": 702738,
"timestamp": {
"time": "2020-09-22 13:06:34"
}
},
"transaction": {
"index": 3
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 83449234.83790848
},
{
"block": {
"height": 702752,
"timestamp": {
"time": "2020-09-22 13:07:16"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 61668499.99704604
},
{
"block": {
"height": 702908,
"timestamp": {
"time": "2020-09-22 13:15:04"
}
},
"transaction": {
"index": 5
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 52724985.25474609
},
{
"block": {
"height": 702923,
"timestamp": {
"time": "2020-09-22 13:15:49"
}
},
"transaction": {
"index": 2
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 58343860.282496385
},
{
"block": {
"height": 702935,
"timestamp": {
"time": "2020-09-22 13:16:25"
}
},
"transaction": {
"index": 1
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 64560491.37821527
},
{
"block": {
"height": 702964,
"timestamp": {
"time": "2020-09-22 13:17:52"
}
},
"transaction": {
"index": 2
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 55557425.201807156
},
{
"block": {
"height": 702969,
"timestamp": {
"time": "2020-09-22 13:18:07"
}
},
"transaction": {
"index": 11
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 55749592.79874139
},
{
"block": {
"height": 702984,
"timestamp": {
"time": "2020-09-22 13:18:52"
}
},
"transaction": {
"index": 6
},
"baseCurrency": {
"symbol": "Cake"
},
"quoteCurrency": {
"symbol": "WBNB"
},
"quotePrice": 55526817.425387986
}
]
}
}
Why does this happen? Is there any way to correct his?