Jamalnouri-ocxEI9comp copy
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from Madi / comp @ https://flipsidecrypto.xyz/Madi/q/LsiMhwFJH4e1/comp
with prices as (
select
date_trunc('day', hour) price_date,
TOKEN_ADDRESS,
SYMBOL,
DECIMALS,
avg(price) as price
from
ethereum.price.ez_hourly_token_prices
group by
1,
2,
3,
4
),
pr_weth as (
select
date_trunc('day', hour) price_day,
avg(price) as price
from
ethereum.price.ez_hourly_token_prices
where
symbol = 'WETH'
group by
1
),
pr_avax as (
select
date_trunc('day', hour) price_day,
avg(price) as price
from
ethereum.price.ez_hourly_token_prices
where
symbol = 'WAVAX'
group by
Run a query to Download Data