flipside
Products
For Protocols
For Analysts
For Explorers
About
Log in
BECOME A PARTNER
flipside
Terra 124 - Compare Anchor liquidations with LUNA price over time, discuss any potential correlations
Zook
Terra 124 - Compare Anchor liquidations with LUNA price over time, discuss any potential correlations
Updated 2021-12-25
Copy 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
›
⌄
with
liquidation_history
as
(
select
block_timestamp
::
date
as
date
,
sum
(
liquidated_amount_usd
)
as
liquidated_usd
,
count
(
tx_id
)
as
nb_liquidations
from
anchor
.
liquidations
group
by
1
)
,
price_history
as
(
select
block_timestamp
::
date
as
date
,
avg
(
price_usd
)
as
luna_price
from
terra
.
oracle_prices
where
symbol
=
'LUNA'
group
by
1
)
select
lh
.
date
,
lh
.
liquidated_usd
,
lh
.
nb_liquidations
,
ph
.
luna_price
from
liquidation_history
lh
join
price_history
ph
on
lh
.
date
=
ph
.
date
order
by
1
desc
Results
Run a query to Download Data