ArioNot Your Keys - to satellite
Updated 2022-11-19Copy 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
29
30
31
32
33
34
35
36
›
⌄
with FTX_address as (
select
address
from ethereum.core.dim_labels
where label ilike '%ftx%' or address_name ilike '%ftx%'
),
Price as (
select
recorded_at::date as date,
symbol,
avg(price) as avg_price
from osmosis.core.dim_prices
WHERE recorded_at >= CURRENT_DATE - 17
group by 1,2
),
Outflow as (
select
block_timestamp,
TX_HASH,
ORIGIN_FROM_ADDRESS,
to_address,
symbol,
amount_usd
from ethereum.core.ez_token_transfers
where from_address in (select distinct address from FTX_address)
and to_address not in (select distinct address from FTX_address)
and block_timestamp >= CURRENT_DATE - 17
and block_timestamp < CURRENT_DATE
union ALL
select
block_timestamp,
TX_HASH,
ORIGIN_FROM_ADDRESS,
eth_to_address as to_address,
'ETH' as symbol,
amount_usd
Run a query to Download Data