zpokoEthereum DEX TX Count
Updated 2023-07-02
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
SELECT
DATE_TRUNC('day', ft.block_timestamp) AS dt,
COUNT(
DISTINCT CASE
WHEN dl.label_type = 'dex' THEN ft.from_address
END
) AS dex_count,
COUNT(distinct tx_hash) AS dex_txs,
COUNT(distinct tx_hash) / COUNT(
DISTINCT CASE
WHEN dl.label_type = 'dex' THEN ft.from_address
END
) AS txs_address
FROM
ethereum.core.fact_transactions ft
JOIN ethereum.core.dim_labels dl ON ft.to_address = dl.address
WHERE
ft.block_timestamp >= '2019-01-01'
AND dl.label_type IN ('dex')
GROUP BY
DATE_TRUNC('day', ft.block_timestamp)
ORDER BY
dt
Run a query to Download Data