Ario2023-09-14 01:27 PM
Updated 2023-09-14
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
›
⌄
with price as (
select
date_trunc(day, HOUR) as date,
SYMBOL,
avg(PRICE) as avg_price
from base.price.ez_hourly_token_prices
where SYMBOL in ('DAI', 'USDbC', 'cbETH')
group by 1,2
union all
select
date_trunc(day, HOUR) as date,
SYMBOL,
avg(PRICE) as avg_price
from ethereum.price.ez_hourly_token_prices
where SYMBOL in ('WETH', 'MAV')
group by 1,2
)
select
* from price
where date >= '2023-08-09'
Run a query to Download Data