DarkJesus-8846downbed
Updated 2022-11-25Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
›
⌄
/* Idea Generating from : https://app.flipsidecrypto.com/velocity/queries/ddf191e3-ba0c-4b6c-9e1f-18677a7dc9e0 Author :JackTheGuy */
with today_price as (
select avg(price) as today_token_price
from ethereum.core.fact_hourly_token_prices
where symbol ='WETH'
and hour::date = (select MAX(HOUR::date) from ethereum.core.fact_hourly_token_prices)),
January as (
select avg(price) as Jan_token_price
from ethereum.core.fact_hourly_token_prices
where symbol ='WETH'
and hour::date = '2022-01-01')
select
today_token_price,
Jan_token_price,
((today_token_price - Jan_token_price) / Jan_token_price) * 100 as percentage_change
from today_price
join January
Run a query to Download Data