Skip to main content

PoolHourData

Entity to store the hourly stats for each pool.

Schema

FieldTypederivedFromDescriptionField Missing
idID!PoolHourData Entity ID. Format: <pool.address>-<Timestamp rounded to the hour by dividing by 3600>
periodStartUnixInt!Timestamp rounded to hour by dividing by 3600
poolPool!Pool Entity for which the hourly metrics are tracked
liquidityBigInt!In range Liquidity at the end of the hour
sqrtPriceBigInt!Pool Price at the end of the hour
token0PriceBigDecimal!Price of token0 in terms of token1 at the end of the hour
token1PriceBigDecimal!Price of token1 in terms of token0 at the end of the hour
tickBigIntActice Tick at the end of the hour
feeGrowthGlobal0X128BigInt!Global Fee Marker Value for token0 at the end of the hourarbitrum-one
feeGrowthGlobal1X128BigInt!Global Fee Marker Value for token1 at the end of the hourarbitrum-one
tvlUSDBigDecimal!TVL available at the end of the hour derived in USD
volumeToken0BigDecimal!Total hourly volume in token0
volumeToken1BigDecimal!Total hourly volume in token1
volumeUSDBigDecimal!Total hourly volume in USD
feesUSDBigDecimal!Total swap fee taken during the hour in terms of USD
txCountBigInt!No. of transactions in pool executed during the hour
openBigDecimal!Open Price of token0
highBigDecimal!High Price of token0
lowBigDecimal!Low Price of token0
closeBigDecimal!Close Price of token0

Referencing Functions

FunctionNameCreateReadUpdateSave
updatePoolHourData()
handleSwap()
✅*

* -> Different across chains