Flipside TeamSectors and their $USD Volume *
Updated 2024-09-12
999
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
-- forked from Sandesh / Sectors and their $USD Volume @ https://flipsidecrypto.xyz/Sandesh/q/zJ6e2Jm-KVAg/sectors-and-their-usd-volume
-- forked from Sector Summaries (labels) @ https://flipsidecrypto.xyz/edit/queries/23d2e624-5333-4719-a2e1-c6bcd7b1a73b
with nft_sales as (
SELECT
block_timestamp::date as ddate
, count(distinct TX_HASH) as txs
, count(distinct BUYER_ADDRESS) as users
, SUM(PRICE_USD) as usd_volume
, (usd_volume/txs) as usd_volume_per_transaction
, (usd_volume/users) as usd_volume_per_user
, 'nft sales' as label
from ethereum.nft.ez_nft_sales
WHERE 1=1
AND block_timestamp between '{{Start_date}}' AND '{{End_date}}'
GROUP BY DDATE
)
,
bridge_vols as (
SELECT
block_timestamp::date as ddate
, count(distinct TX_HASH) as txs
, count(distinct ORIGIN_FROM_ADDRESS) as users
, SUM(AMOUNT_USD) as usd_volume
, (usd_volume/txs) as usd_volume_per_transaction
, (usd_volume/users) as usd_volume_per_user
, 'bridging' as label
from ethereum.defi.ez_bridge_activity
WHERE 1=1
AND block_timestamp between '{{Start_date}}' AND '{{End_date}}'
GROUP BY DDATE
)
,
QueryRunArchived: QueryRun has been archived