js699btc vs alts price
Updated 2024-11-11
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
with
price1 as (select
date_trunc('day',hour) as period,
symbol,
avg(price) as price_usd
from bitcoin.price.ez_prices_hourly
where symbol in ('BTC')
group by 1,2),
price2 as (select
date_trunc('day',hour) as period,
symbol,
avg(price) as price_usd
from ethereum.price.ez_prices_hourly
where symbol in ('{{asset symbol}}')
group by 1,2)
select p1.period, p1.price_usd as btc_price, p2.price_usd as alt_price
from price1 p1 join price2 p2 on p1.period=p2.period
QueryRunArchived: QueryRun has been archived