Healthy Defi KPIsEthereum - Stablecoin | TKV
Updated 2024-11-25
999
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 rec_cte AS (
select
dateadd(
day,
'-' || row_number() over (order by null),
dateadd(day, '+1', current_date())
) as date
from table (generator(rowcount => 36))
),
contract_stablecoin as
(select *
from (SELECT
distinct blockchain,
token_address,
symbol,
name,
decimals,
avg(price) as avg_price
FROM
crosschain.price.ez_prices_hourly
GROUP BY
1,
2,
3,
4,
5
HAVING
avg_price > 0.95
AND avg_price < 1.05)
where blockchain = 'ethereum'),
user_bal as
(select date(block_timestamp) as datetime,
to_address as address,
contract_address,
QueryRunArchived: QueryRun has been archived