rajsCbridge Bridge Volume
Updated 2022-07-01Copy Reference Fork
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 blocto_price as
(
SELECT
date_trunc('day', timestamp) as date,
avg(price_usd) as blocto_price
from flow.core.fact_prices
where asset_id = '12182'
and timestamp >= '2022-04-19'
group by 1
)
,
rally_price as
(
SELECT
date_trunc('day', hour) as date,
avg(price) as rally_price
from ethereum.core.fact_hourly_token_prices
where token_address = '0xf1f955016ecbcd7321c7266bccfb96c68ea5e49b'
and hour >= '2022-04-19'
group by 1
)
,
flow_price as
(
SELECT
date_trunc('day', timestamp) as date,
avg(price_usd) as flow_price
from flow.core.fact_prices
where asset_id = '4558'
and timestamp >= '2022-04-19'
group by 1
)
,
Run a query to Download Data