StangFAST01 - overview [ number ]
    Updated 2023-08-28
    with

    token_price AS
    (
    SELECT
    date_trunc( 'day' , a.recorded_hour ) AS date
    , avg( a.close ) AS price
    , a.token_address AS id
    , a.symbol AS token
    FROM
    solana.core.ez_token_prices_hourly a
    GROUP BY 1 , 3 , 4
    )
    ,
    raw_one AS
    (
    SELECT
    a.block_timestamp AS date_time
    , a.tx_id AS tx_id
    , a.signers[0] AS user
    FROM
    solana.core.fact_events a
    WHERE
    a.block_timestamp >= dateadd( 'day' , -{{number_of_days}} , current_date )
    AND a.program_id = 'unpXTU2Ndrc7WWNyEhQWe4udTzSibLPi25SXv2xbCHQ'
    AND a.succeeded = 'true'
    )
    ,
    raw_tx AS
    (
    SELECT
    a.block_timestamp AS date_time
    , a.tx_id AS tx_id
    , b.user AS user
    , a.index AS index
    , a.tx_from AS tx_from
    Run a query to Download Data