andurilMplx Bought and Sold on DEXs
Updated 2023-03-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 mplx_buys as (
select
date(block_timestamp) as date,
count(distinct tx_id),
count(distinct swapper),
sum(swap_to_amount) as mplx_amt,
'Buy' as type
from solana.core.fact_swaps
where
date(block_timestamp) >= '2022-10-09'
and succeeded = 'TRUE'
AND swap_to_mint = 'METAewgxyPbgwsseH8T16a39CQ5VyVxZi9zXiDPY18m'
group by date
),
mplx_sells as (
select
date(block_timestamp) as date,
count(distinct tx_id),
count(distinct swapper),
sum(swap_from_amount) as mplx_amt,
'Sell' as type
from solana.core.fact_swaps
where
date(block_timestamp) >= '2022-10-09'
and succeeded = 'TRUE'
AND swap_from_mint = 'METAewgxyPbgwsseH8T16a39CQ5VyVxZi9zXiDPY18m'
group by date
)
select
Run a query to Download Data