adam10ETH Volatility
Updated 2021-08-02
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
26
27
28
29
30
31
32
33
34
›
⌄
with new_eth_prices as (
SELECT
date_trunc('hour', hour) as date
FROM ethereum.token_prices_hourly
where symbol = 'ETH' AND date >= CURRENT_DATE - 14
group by date),
eth_prices as (
SELECT
date_trunc('hour', hour) as date,
avg(price) as eth_hourly_price
FROM ethereum.token_prices_hourly
where symbol = 'ETH' AND date >= CURRENT_DATE - 14
group by date
),
actual_eth_prices as (
SELECT
date_trunc('hour', hour) as date
FROM ethereum.token_prices_hourly
where symbol = 'ETH' AND date >= CURRENT_DATE - 14
group by date)
SELECT
u.date,
l.eth_hourly_price
from new_eth_prices u
inner join eth_prices l
on u.date = l.date
inner join actual_eth_prices a
on u.date = a.date
Run a query to Download Data