rajsSTETH ETH Ratio
Updated 2022-06-11Copy 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
›
⌄
with eth_price AS
(
SELECT
hour,
price
from flipside_prod_db.ethereum_core.fact_hourly_token_prices
where symbol = 'WETH'
and hour >= CURRENT_DATE - interval '365 days'
)
,
steth_price as
(
SELECT
hour,
price
from flipside_prod_db.ethereum_core.fact_hourly_token_prices
where symbol = 'stETH'
and hour >= CURRENT_DATE - interval '365 days'
)
,
ratio as
(
select
e.hour,
e.price as eth_price,
s.price as steth_price,
s.price / e.price as steth_to_eth_ratio
from eth_price e
left join steth_price s
on e.hour = s.hour
order by 1 desc
)
select
Run a query to Download Data