Sbhn_NPsushi general
Updated 2023-03-04Copy Reference Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
›
⌄
SELECT
date_trunc('day',block_timestamp) as date,
count(DISTINCT tx_hash) as swaps,
sum(swaps) over (order by date) as total_swaps,
count(DISTINCT ORIGIN_FROM_ADDRESS) as users,
sum(users) over (order by date) as total_users,
sum(amount_in_usd) as swap_volume_usd,
sum(swap_volume_usd) over (order by date) as total_volume
FROM ethereum.core.ez_dex_swaps
WHERE platform LIKE 'sushiswap'
and date>= CURRENT_DATE - 180
GROUP BY 1
Run a query to Download Data