zero-ndoLtSalgorand_price_correlation
Updated 2022-07-01Copy Reference Fork
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
35
36
›
⌄
-- reference https://app.flipsidecrypto.com/dashboard/easy-luna-price-volatility-VVt2R-
WITH
btc as (
SELECT
date_trunc('day', hour) as day,
avg(price) as price,
stddev(price) as stand_dev
FROM flipside_prod_db.ethereum.token_prices_hourly
WHERE symbol ilike 'wbtc'
and day> current_date - interval '2 month'
GROUP BY 1
),
eth as (
SELECT
date_trunc('day', hour) as day,
avg(price) as price,
stddev(price) as stand_dev
FROM flipside_prod_db.ethereum.token_prices_hourly
WHERE symbol ilike 'weth'
and day> current_date - interval '2 month'
GROUP BY 1
),
monero as
(
SELECT
date_trunc('day', hour) as day,
avg(price) as price,
stddev(price) as stand_dev
FROM flipside_prod_db.ethereum.token_prices_hourly
WHERE symbol ilike 'wxmr'
and day> current_date - interval '2 month'
Run a query to Download Data