binhachon3. Tinyman Assets - Top 1000 assets in volume with average swap size
Updated 2022-01-09
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
›
⌄
with tinyman_pool_address as (
select distinct address from algorand.account_app where app_id = 350338509
),
tinyman_swap_algo_for_asset_transactions_1 as (
select
distinct tx_group_id,
asset_id,
sender
from algorand.asset_transfer_transaction
where tx_group_id is not null
and sender in (select address from tinyman_pool_address)
),
tinyman_swap_algo_for_asset_transactions_2 as (
select
algorand.payment_transaction.block_id,
algorand.block.block_timestamp,
sender as address,
receiver as pool,
tx_id,
tx_group_id,
sum(amount) as amount
from algorand.payment_transaction
left join algorand.block on algorand.block.block_id = algorand.payment_transaction.block_id
where tx_group_id is not null
and pool in (select address from tinyman_pool_address)
and algorand.payment_transaction.block_id < 18377357
and amount > 0.1
group by algorand.payment_transaction.block_id, algorand.block.block_timestamp, address, pool, tx_id, tx_group_id
),
tinyman_swap_algo_for_asset as (
select
tinyman_swap_algo_for_asset_transactions_2.tx_group_id,
block_timestamp,
address,
sender,
asset_id,
Run a query to Download Data