KaskoazulXXX
Updated 2023-01-04
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 first_transfer_to as (
-- select receiver as new_address,
-- min(block_timestamp) as first_transfer_date
-- from osmosis.core.fact_transfers
-- where tx_succeeded = TRUE
-- group by 1
-- ),
-- first_transactions as (
-- select tx_from as new_active_address,
-- min(block_timestamp) as first_transaction_date
-- from osmosis.core.fact_transactions
-- where tx_succeeded = TRUE
-- group by 1
-- ),
with airdrop as (
select a.block_timestamp,
a.tx_id,
a.receiver,
l.project_name as symbol,
a.amount/pow(10,a.decimal) as token_amount
from osmosis.core.fact_airdrop a
left join osmosis.core.dim_labels l
on a.currency = l.address
),
prices as (
select date_trunc('hour', recorded_at) as fecha,
symbol,
avg(price) as avg_price
from osmosis.core.dim_prices
--where symbol != 'IOV'
group by 1,2
),
Run a query to Download Data