ZSaedCompare price
Updated 2022-07-01Copy Reference Fork
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
30
31
32
33
34
35
36
›
⌄
with eth_price as (
select
hour as hours ,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where symbol is null and token_address is null
and hour::date >= '2022-05-01'
group by hours
),
btc_price as (
select
date_trunc(hour,block_timestamp) as hours,
avg(asset_usd) as price
from thorchain.prices
where block_timestamp::date >= '2022-05-01'
and pool_name = 'BTC.BTC'
group by hours
)
, algo_price as (
select avg(PRICE_USD)as price , BLOCK_HOUR as hours
from flipside_prod_db.algorand.prices_swap
where ASSET_ID = 0 and BLOCK_HOUR::date >= '2022-05-01'
group by BLOCK_HOUR
)
, sol_price as (
select
hour as hours ,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where token_address ='0xd31a59c85ae9d8edefec411d448f90841571b89c'
and hour::date >= '2022-05-01'
group by hours
Run a query to Download Data