BREAKING NEWS! Coin.fyi has been acquired by VC firm Morningstar Ventures. Read more

Uniswap
$11.11 -19.67%
UNI · 1w

Uniswap graph query inconsistencies

Hello all, I am trying to unedrstand how the graph (V3) works to retrieve token data. Reference the following query, that can be run in the playground here: [https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3](https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3) query tokens{tokens(first: 1, skip: 0) {id symbol name volume volumeUSD feesUSD derivedETH tokenDayData( orderBy:date orderDirection:desc first: 2, skip: 0) { id date volume volumeUSD priceUSD feesUSD }}} ​ ​ https://preview.redd.it/1chlp7d4kvb81.png?width=628&format=png&auto=webp&s=17577cf2d5802aaab33c0b3447ecec01e23b5ec4 Problem is, volume/price data doesn't match between the token object and tokenDayData sub object, even though both are for the same toekn (see how ID matches, with the only difference that id in tokenDayData has a timeframe apended (in which format that is, I don't know) Any idea? Shouldn't the token data be the same of the tokenDayData, especially if sorted by Date descending, meaning I am pulling the latest version? Thank you all for your input
Go to self.UniSwap
Recent News