jananLofty AI Platform Dashboard
Updated 2023-01-02Copy Reference Fork
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
›
⌄
with raw0 as (
SELECT
asset_id
from flipside_prod_db.algorand.asset
where creator_Address = 'LOFTYRITC3QUX6TVQBGT3BARKWAZDEB2TTJWYQMH6YITKNH7IOMWRLC7SA'
and asset_deleted = FALSE
),
raw1 as (
SELECT
asset_id,
asset_name,
sum(amount) as amnt
from flipside_prod_db.algorand.account_asset
where amount > 0
and asset_id <> '237267329'
and address <> 'LOFTYRITC3QUX6TVQBGT3BARKWAZDEB2TTJWYQMH6YITKNH7IOMWRLC7SA'
GROUP by 1,2
)
SELECT
asset_name,
amnt as shares,
amnt * 50 as usd_value
from raw1 x join raw0 y on x.asset_id=y.asset_id
ORDER by 2
Run a query to Download Data