v3-subgraph
v3-subgraph copied to clipboard
Open price = close price?
When I run
{
poolDayDatas(where: {pool: "0x99ac8ca7087fa4a2a1fb6357269965a2014abc35"}) {
open
close
}
}
the close price appears to be the same as the open price for all of the data. (The given pool address is just an example.) Is there a good reason for this to happen, or is it a bug?
This definitely appears to be a bug. You can see this as the close price for the day should be the open price for day - 1
{
pool(id: "0x7bea39867e4169dbe237d55c8242a8f2fcdcc387") {
poolDayData(first: 2, orderBy: date, orderDirection: desc) {
date
open
close
}
}
}
In concert with looking at the hourly data it appears that the close price is actually the open price Interestingly the hourly data seems to be correct so it can be used as a workaround
https://github.com/Uniswap/v3-subgraph/pull/102 There seems to be an attemp to fix it, but never gets reviewed/merged.
I'm running across this bug, as well (open and close are the same value).