MoeMEME price fst days
Updated 2023-05-15
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 base as (select
HOUR::date date ,
row_number()over(partition by symbol order by date asc) as days_count ,
SYMBOL,token_address,
avg(PRICE) price
from
ethereum.core.fact_hourly_token_prices
where
(token_address in (
lower('0x6982508145454Ce325dDbE47a25d4ec3d2311933'),
'0x2f573070e6090b3264fe707e2c9f201716f123c7',
'0x5026f006b85729a8b14553fae6af249ad16c9aab',
'0x6b89b97169a797d94f057f4a0b01e2ca303155e4')
or
symbol ilike 'bonk'
or
symbol ilike 'shib')
and HOUR < CURRENT_DATE
group by 1,3,4
union all
select
HOUR::date date ,
row_number()over(partition by symbol order by date asc) as days_count ,
SYMBOL,token_address,
avg(PRICE) price
from
bsc.core.fact_hourly_token_prices
where
symbol = 'DOGE'
and HOUR < CURRENT_DATE
group by 1,3,4
Run a query to Download Data