adriaparcerisasop down
Updated 2022-12-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
26
27
28
29
30
31
32
33
34
35
36
›
⌄
with op as (
SELECT
date_trunc('day', hour) AS date2,
symbol,
avg(price) as eth_price,
max(price) as maxeth,
min(price) as mineth,
STDDEV(price) as stveth,
stveth/eth_price as eth_pct
FROM optimism.core.fact_hourly_token_prices
where SYMBOL = 'OP'
and HOUR > CURRENT_DATE-INTERVAL '3 MONTHS'
group by 1,2
order by 1 ASC
),
eth as (
SELECT
date_trunc('day', hour) AS date2,
symbol,
avg(price) as eth_price,
max(price) as maxeth,
min(price) as mineth,
STDDEV(price) as stveth,
stveth/eth_price as eth_pct
FROM ethereum.core.fact_hourly_token_prices
where SYMBOL = 'WETH'
and HOUR > CURRENT_DATE -INTERVAL '3 MONTHS'
group by 1,2
order by 1 ASC
),
wbtc as (
SELECT
date_trunc('day', hour) AS date2,
symbol,
avg(price) as eth_price,
Run a query to Download Data