HadisehDaily Swap
Updated 2024-10-29
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
›
⌄
SELECT
DATE_TRUNC('week', block_timestamp) AS transaction_week,
COUNT(DISTINCT origin_from_address) AS unique_senders,
COUNT(*) AS swap_count,
SUM(
IFNULL(amount_out_usd, 0) + IFNULL(amount_in_usd, 0)
) / 2 AS total_swap_value_usd,
COUNT(DISTINCT contract_address) AS distinct_liquidity_pools
FROM
base.defi.ez_dex_swaps
WHERE
block_timestamp >= '2024-01-01'
GROUP BY
DATE_TRUNC('week', block_timestamp)
ORDER BY
transaction_week;
QueryRunArchived: QueryRun has been archived