mlhrETH, daily
Updated 2022-09-14Copy 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
›
⌄
with sell as (select date_trunc('day', block_timestamp) as days,
sum(amount_in_usd) as swap_from_rETH_USD_volume
FROM ethereum.core.ez_dex_swaps
where days >= '2022-01-01'
and symbol_in in ('rETH')
group by 1
),
buy as (select date_trunc('day', block_timestamp) as days,
sum(amount_out_usd) as swap_to_rETH_USD_volume
FROM ethereum.core.ez_dex_swaps
where days >= '2022-01-01'
and symbol_out in ('rETH')
group by 1
)
select x.days,
swap_from_rETH_USD_volume,
swap_to_rETH_USD_volume
from sell x
join buy y
on x.days = y.days
Run a query to Download Data