bachiethbad1
Updated 2022-11-25
999
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 as (
select
date(hour) as day,
round(
avg(price),
2
) as price_usd
from
ethereum.core.fact_hourly_token_prices
where
token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
and day >= dateadd(
month,
-1,
getdate()
)
group by
day
order by
day desc
),
sol as (
select
date(recorded_hour) as day,
round(
avg(close),
2
) as price_usd
from
solana.core.fact_token_prices_hourly
where
symbol = 'SOL'
and day >= dateadd(
month,
-1,
getdate()
Run a query to Download Data