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