hessTop Tokens by Volume
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 deposit as ( select symbol , sum(SUPPLIED_USD) as volume
from ethereum.aave.ez_deposits
where block_timestamp::date >= current_date - {{N_Days}}
and symbol is not null
and symbol != 'AAVE'
group by 1
order by 2 DESC
limit 10)
,
aave as ( select symbol , sum(SUPPLIED_USD) as volume
from ethereum.aave.ez_deposits
where block_timestamp::date >= current_date - {{N_Days}}
and symbol is not null
and symbol = 'AAVE'
group by 1)
,
final as ( select *
from deposit
UNION
select *
from aave )
select case when symbol = 'AAVE' then 'AAVE Token' else 'Other Tokens' end as type, symbol, *
from final
Run a query to Download Data