winnie-fs2023-03-10 11:52 AM
99
1
2
3
4
5
6
7
8
9
10
›
⌄
SELECT
trunc(block_timestamp,'month') as date,
symbol,
count(distinct borrower_address) as borrowers,
sum(borrowed_usd) as borrowed_in_usd,
sum(borrowed_in_usd) over (partition by symbol order by date) as total_borrowed_usd
from ethereum.aave.ez_borrows where symbol in ('SNX','UNI','MKR')
and aave_version = 'Aave V2'
group by 1,2 order by 1 asc, 2 desc
Run a query to Download Data