flipside
Insights
Studio
Quests
For Chains
For Analysts
For Explorers
About
Log in
Sign up
flipside
2023-11-01 09:15 PM
yasmin-n-d-r-h
2023-11-01 09:15 PM
Updated 2023-11-01
Copy Reference
Fork
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
›
⌄
SELECT
DATE_TRUNC
(
'DAY'
,
date
)
AS
DAY
,
chain
,
AVG
(
tvl_usd
)
AS
tvl
FROM
external
.
defillama
.
fact_chain_tvl
where
chain
ilike
any
(
'%near%'
,
'%optimism%'
,
'%base%'
,
'%arbitrum%'
)
and
chain
<>
'Arbitrum Nova'
and
date
>
current_date
-
60
GROUP
BY
1
,
2
;
Results
Run a query to Download Data