shadilAverage price of ETH and aETH
Updated 2022-09-12
99
1
2
3
4
5
6
7
8
9
10
›
⌄
select case when token_address = '0xe95a203b1a91a908f9b9ce46459d101078c2c3cb' then 'aETH'
when token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2' then 'ETH' end token_name,
avg(price) token_price,
date_trunc('day', hour) as date_time
from ethereum.core.fact_hourly_token_prices
where (token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
or token_address = '0xe95a203b1a91a908f9b9ce46459d101078c2c3cb')
and date_time >= '2021-11-01'
group by date_time, token_name
order by date_time
Run a query to Download Data