andurilMplx Bought and Sold on DEXs
    Updated 2023-03-15
    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