DatarunnerTitanium Ore
    Updated 5 hours ago
    --Titanium Ore
    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 = 'tiorehR1rLfeATZ96YoByUkvNFsBfUUSQWgSH2mizXL' AS Titanium_Ore,
    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, -90, CURRENT_TIMESTAMP())
    AND Titanium_Ore
    AND devise IN ('USDC', 'ATLAS')
    ),

    final AS (
    Last run: about 5 hours agoAuto-refreshes every 12 hours
    Date
    Volume / Hour
    Titanium Ore (ATLAS)
    1
    2025-04-16 04:004,000,0000.00189996
    2
    2025-04-15 19:00600,0000.00189996
    3
    2025-04-14 21:00100,0000.00189996
    4
    2025-04-13 22:00200,0000.00189996
    5
    2025-04-08 21:00100,0000.00185562
    6
    2025-04-07 19:00200,0000.00185562
    7
    2025-04-06 14:00722,5490.00185562
    8
    2025-04-05 17:002,000,0000.00186001
    9
    2025-04-05 01:00370,0000.00185562
    10
    2025-04-03 21:00550,9960.00185562
    11
    2025-04-02 21:00100,0000.00190272
    12
    2025-04-01 20:00100,0000.00195182
    13
    2025-03-31 21:00100,0000.00205215
    14
    2025-03-31 07:00350,9360.00207283
    15
    2025-03-26 21:00100,0000.0022572
    16
    2025-03-25 21:00100,0000.00236
    17
    2025-03-24 21:00100,0000.00238515
    18
    2025-03-23 08:002,317,6470.00258001
    19
    2025-03-22 10:00230,0000.00258969
    20
    2025-03-21 10:002,000,0000.00258999
    ...
    101
    4KB
    37s