v3-subgraph icon indicating copy to clipboard operation
v3-subgraph copied to clipboard

Open price = close price?

Open TheImaginaryOne opened this issue 4 years ago • 3 comments

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?

TheImaginaryOne avatar Jun 30 '21 09:06 TheImaginaryOne

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

hbriese avatar Apr 10 '22 02:04 hbriese

https://github.com/Uniswap/v3-subgraph/pull/102 There seems to be an attemp to fix it, but never gets reviewed/merged.

han-qiu avatar Aug 13 '22 04:08 han-qiu

I'm running across this bug, as well (open and close are the same value).

zachwill avatar Aug 17 '22 16:08 zachwill