Pine Analyticspump.fun dex v1 copy copy
    Updated 3 days ago
    WITH tab1 AS (
    SELECT
    tx_id,
    block_timestamp,
    signers[0] AS trader,
    inner_instruction['instructions'][0]['parsed']['info']['mint'] AS token_in,
    inner_instruction['instructions'][0]['parsed']['info']['tokenAmount']['uiAmount'] AS amount_in,
    inner_instruction['instructions'][1]['parsed']['info']['mint'] AS token_out,
    inner_instruction['instructions'][1]['parsed']['info']['tokenAmount']['uiAmount'] AS amount_out
    FROM solana.core.fact_events
    WHERE program_id = 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA'
    AND succeeded
    AND ARRAY_SIZE(instruction['accounts']) = 17
    AND amount_in IS NOT NULL
    AND amount_out IS NOT NULL
    AND inner_instruction['instructions'][1]['parsed']['info']['mint'] IS NOT NULL
    and block_timestamp > '2025-02-20'

    union all

    select
    tx_id,
    block_timestamp,
    signers[0] as trader,
    inner_instruction['instructions'][5]['parsed']['info']['mint'] as token_in,
    inner_instruction['instructions'][5]['parsed']['info']['tokenAmount']['uiAmount'] as amount_in,
    inner_instruction['instructions'][6]['parsed']['info']['mint'] as token_out,
    inner_instruction['instructions'][6]['parsed']['info']['tokenAmount']['uiAmount'] as amount_out
    from solana.core.fact_events
    where program_id like 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA'
    and SUCCEEDED
    and ARRAY_SIZE(INSTRUCTION['accounts']) = 17
    and inner_instruction['instructions'][0]['parsed']['info']['mint'] = inner_instruction['instructions'][1]['parsed']['info']['mint']
    and block_timestamp > '2025-02-20'
    Last run: 3 days ago
    HOUR
    SWAPS
    TRADERS
    VOLUME_USD
    1
    2025-03-22 15:00:00.00025563144891437520.42639395
    2
    2025-03-22 00:00:00.0002834463302228689.19396375
    3
    2025-03-26 18:00:00.00085343552655038338.49616444
    4
    2025-03-21 07:00:00.00050192192387046.578304597
    5
    2025-03-22 18:00:00.0002688582232434860.831473
    6
    2025-03-23 05:00:00.00040722157133360759.31786583
    7
    2025-03-20 20:00:00.000116494672667597.256365591
    8
    2025-03-25 14:00:00.00057107233993508698.15738876
    9
    2025-03-21 19:00:00.0005318246960606907.3808901
    10
    2025-03-24 07:00:00.00086036570064217067.2962715
    11
    2025-03-21 08:00:00.00044661980404595.139845638
    12
    2025-03-25 04:00:00.000110725673076096544.04318989
    13
    2025-03-25 13:00:00.00043622139935168923.89260204
    14
    2025-03-22 19:00:00.00027280158331453933.46725391
    15
    2025-03-24 19:00:00.0001606729078017017397.9118182
    16
    2025-03-25 15:00:00.00091159332447414205.12416568
    17
    2025-03-27 02:00:00.00049157130855802458.29992653
    18
    2025-03-29 23:00:00.00091341228434365748.67740223
    19
    2025-03-22 12:00:00.0002136579501747255.15409435
    20
    2025-03-29 01:00:00.00054302154503594684.32495542
    ...
    232
    13KB
    17s