cypher3. ETH Positive Price Action - ETH price increase
Updated 2023-01-20
99
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
›
⌄
with eth_price_first as (select
'' as token_address,
'ETH' as symbol,
date_trunc('{{date_aggregation}}', hour) as date_jan_1,
avg(price) as avg_price_jan_1
from ethereum.core.fact_hourly_token_prices
where token_address is null
and date_jan_1 = '2023-1-1'
group by date_jan_1, token_address, symbol
),
eth_price_second as (select
'' as token_address,
'ETH' as symbol,
date_trunc('{{date_aggregation}}', hour) as date_jan_16,
avg(price) as avg_price_jan_16
from ethereum.core.fact_hourly_token_prices
where token_address is null
and date_jan_16 = '2023-1-16'
group by date_jan_16, token_address, symbol
),
final_eth as (select *, ((s.avg_price_jan_16 - f.avg_price_jan_1)/f.avg_price_jan_1)*100 as price_change from eth_price_first f
join eth_price_second s using (symbol))
select * from final_eth
Run a query to Download Data