Sbhn_NPsquid ARBI
Updated 2023-04-08
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
›
⌄
--credit : panda
WITH token_Prices AS
(
SELECT
HOUR::date as PRICE_TIME,
TOKEN_ADDRESS,
AVG(PRICE) as usd_price
FROM
ethereum.core.fact_hourly_token_prices
WHERE
TOKEN_ADDRESS ilike '%0x467719aD09025FcC6cF6F8311755809d45a5E5f3%' OR --AXL
TOKEN_ADDRESS ilike '%0x6B175474E89094C44Da98b954EedeAC495271d0F%' OR --DAI
TOKEN_ADDRESS ilike '%0x853d955aCEf822Db058eb8505911ED77F175b99e%' OR --FRAX
TOKEN_ADDRESS ilike '%0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48%' OR --USDC
TOKEN_ADDRESS ilike '%0xdAC17F958D2ee523a2206206994597C13D831ec7%' --USDT
GROUP BY 1, 2
UNION ALL
SELECT
RECORDED_HOUR::date,
CURRENCY as TOKEN_ADDRESS,
AVG(PRICE) as usd_price
FROM
osmosis.core.ez_prices
WHERE
CURRENCY ilike '%ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2%'
--ATOM
GROUP BY 1, 2
),
airdrop_stats as (
select
TO_ADDRESS as claimers
from arbitrum.core.fact_token_transfers
where FROM_ADDRESS = lower('0x67a24CE4321aB3aF51c2D0a4801c3E111D88C9d9')
Run a query to Download Data