SandeshPrice of stars correl with btc and atom
Updated 2022-10-13
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
›
⌄
with stars_price as
(
select
recorded_at::date as "date",
symbol as stars_symbol,
avg(price) as stars_price,
avg(volume_24h) as stars_volume
from osmosis.core.dim_prices
where 1=1
and symbol='STARS'
and recorded_at > '2022-09-12'
group by "date",stars_symbol
),
atom_price as
(
select
recorded_at::date as "date",
symbol as atom_symbol,
avg(price) as atom_price,
avg(volume_24h) as atom_volume
from osmosis.core.dim_prices
where 1=1
and symbol='ATOM'
and recorded_at > '2022-09-12'
group by "date",symbol
)
select s.*,b.* from stars_price s inner join atom_price b on s."date"=b."date"
Run a query to Download Data