metrics_tokens.price_daily holds one row per token per day: the price in USD at midnight UTC. metrics_tokens.price_hourly holds the same figure at the top of every hour.
Columns
Both tables share one schema.| Column | Type | Description |
|---|---|---|
timestamp | TIMESTAMP | The moment the price was taken: midnight UTC in the daily table, the top of the hour in the hourly one. |
token_id | STRING | Token the price belongs to: {token_address}-{chain_id}. Joins dimensions.tokens. |
chain_id | STRING | Chain the token is deployed on. |
price | FLOAT64 | The price in US dollars at that moment. Every row has a value, and a token has a row on each day it was priced, so a null after a left join is a missing row. |
Sample queries
- Daily
- Hourly
The daily table suits long histories and joins to the other daily tables at a fraction of the hourly tableβs size.
token_id is the key on both sides of the join.