PapasotCopy of Al Goanna sales and volume
Updated 2022-05-23
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
›
⌄
with Algoannas as (
select *
from algorand.asset
where ASSET_NAME like '%Al Goanna%'
and ASSET_DELETED= false
and creator_address= 'D5J7H7PIYKLY2U6A5OFUAC7GQHTHSXXNX65DSD3CJYPBV2MVK6NTNW44CA'
order by asset_name),
group_transactions as (
select
tx_group_id,
asset_name
from algorand.asset_transfer_transaction
left join Algoannas b using (asset_id)
where asset_amount = '1'
and ASSET_NAME like '%Al Goanna%'
and tx_group_id is not null
and b.creator_address= 'D5J7H7PIYKLY2U6A5OFUAC7GQHTHSXXNX65DSD3CJYPBV2MVK6NTNW44CA'
)
SELECT
date_trunc('day',block_timestamp) as block_day,
count(DISTINCT(c.tx_group_id)),
sum(amount) as Algoanna_volume
from algorand.transfers
left join group_transactions c using (tx_group_id)
where
asset_id = 0 AND
c.tx_group_id is not null
group by block_day
order by block_day
Run a query to Download Data