DatarunnerXXS - VZUS solos
    Updated 4 hours ago
    --VZUS solos
    WITH
    tx_list AS (
    SELECT
    TO_VARCHAR(DATE_TRUNC('HOUR', block_timestamp), 'YYYY-MM-DD HH24:MI') AS date,
    --TO_VARCHAR(DATE_TRUNC('DAY', block_timestamp), 'YYYY-MM-DD HH24:MI:SS') AS date,
    inner_instruction:instructions[0]:parsed:info:tokenAmount:uiAmount AS total_des_frais,
    inner_instruction:instructions[1]:parsed:info:tokenAmount:uiAmount AS total_hf,
    inner_instruction:instructions[2]:parsed:info:tokenAmount:uiAmount AS volume_total,
    total_hf + total_des_frais AS montant_total,
    inner_instruction:instructions[0]:parsed:info:mint::string = 'ATLASXmbPQxBUYbxPsV97usA3fPQYEqzQBUHgiFCUsXx' AS ATLAS,
    inner_instruction:instructions[0]:parsed:info:mint::string = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v' AS USDC,
    inner_instruction:instructions[2]:parsed:info:mint::string = 'HjFijcGWKgfDwGpFX2rqFwEU9jtEgFuRQAJe1ERXFsA3' AS VZUS_solos,
    CASE
    WHEN ATLAS THEN (total_hf + total_des_frais) / NULLIF(volume_total, 0)
    END AS prix_unitaire_ATLAS,
    CASE
    WHEN USDC THEN (total_hf + total_des_frais) / NULLIF(volume_total, 0)
    END AS prix_unitaire_USDC,
    CASE
    WHEN ATLAS THEN 'ATLAS'
    WHEN USDC THEN'USDC'
    END AS devise

    FROM
    solana.core.fact_events

    WHERE
    program_id = 'traderDnaR5w6Tcoi3NFm53i48FTDNbGjBSZwWXDRrg'
    AND succeeded = 'true'
    AND block_timestamp >= DATEADD(DAY, -180, CURRENT_TIMESTAMP())
    AND VZUS_solos
    AND devise IN ('USDC', 'ATLAS')
    ),

    final AS (
    Last run: about 4 hours agoAuto-refreshes every 12 hours
    Date
    Volume
    VZUS solos (ATLAS)
    VZUS solos (USDC)
    1
    2025-04-14 21:00122403.31
    2
    2025-04-13 17:00122403.31
    3
    2025-04-13 09:00122403.3
    4
    2025-04-12 21:00122403.29
    5
    2025-04-08 12:00122403.29
    6
    2025-04-06 21:00122402.2
    7
    2025-04-03 21:00122402.2
    8
    2025-04-01 14:00320002.2
    9
    2025-03-30 19:00119992.2
    10
    2025-03-28 02:00119992.3
    11
    2025-03-28 01:00119992.4
    12
    2025-03-23 12:00219992.4
    13
    2025-03-21 02:00119992.5
    14
    2025-03-19 13:00424452.5
    15
    2025-03-13 20:00124452.5
    16
    2025-03-10 22:00124452.84
    17
    2025-03-08 02:00124452.85
    18
    2025-03-06 22:00124452.85
    19
    2025-03-01 01:00124452.89
    20
    2025-02-25 09:00124802.89
    ...
    104
    3KB
    3s