Papasotoctorand daily volume
Updated 2022-05-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
›
⌄
with Octo_primes as (
select *
from algorand.asset
where ASSET_NAME like '%Octorand #%' or asset_name like '%Octo Prime Gen2%'
and ASSET_DELETED= false
order by asset_name),
group_transactions as (
select
tx_group_id,
asset_name
from algorand.asset_transfer_transaction
left join Octo_primes b using (asset_id)
where asset_amount = '1'
and ASSET_NAME like '%Octorand #%' or asset_name like '%Octo Prime Gen2%'
and tx_group_id is not null
)
SELECT
date_trunc('day',block_timestamp) as block_day,
count(DISTINCT(c.tx_group_id)) sales,
sum(amount) as Octorand_volume,
CASE
when asset_name like '%Octo Prime Gen2%' then 'Gen2'
when asset_name like '%Octorand #%' then 'Gen1'
end as generation
from algorand.transfers
left join group_transactions c using (tx_group_id)
where
asset_id = 0 AND
c.tx_group_id is not null
and generation is not null
group by block_day,generation
order by block_day
Run a query to Download Data