adriaparcerisasterra station feather
Updated 2023-01-25
99
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
›
⌄
with
t1 as (
SELECT
trunc(x.block_timestamp,'day') as date,
count(distinct x.tx_id) as transactions,
count(distinct x.tx_sender) as active_users,
transactions/active_users as avg_tx_per_user,
sum(fee) as fees,
avg(fee) as avg_tx_fee
from terra.core.fact_transactions x
where x.block_timestamp between '2023-01-07' and '2023-01-22'
group by 1
),
t2 as (
select
trunc(y.block_timestamp,'day') as date,
count(distinct y.tx_id) as swaps,
count(distinct trader) as swappers,
swaps/swappers as avg_swaps_per_swapper
from terra.core.ez_swaps y
where y.block_timestamp between '2023-01-07' and '2023-01-22'
group by 1
),
t3 as (
select
trunc(z.block_timestamp,'day') as date,
count(distinct z.tx_id) as nft_sales,
count(distinct z.purchaser) as nft_buyers,
count(distinct z.seller) as nft_sellers,
nft_sales/nft_buyers as nft_bought_per_user,
nft_sales/nft_sellers as nft_sold_per_user
from terra.core.fact_nft_sales z
where z.block_timestamp between '2023-01-07' and '2023-01-22'
group by 1
),
t4 as (
Run a query to Download Data