Query editor
/** [Title] Upbit Exchange Flow Analysis (2024 ~ Current)* [Target Address] 0x59faced23b5100bd8729cf32ef7b59c49908ed15** [Description]* Tracks the daily TON inflows and outflows for the Upbit hot wallet since 2024.* - Inflow (Green): User deposits -> Upbit (Potential Sell Pressure)* - Outflow (Red): Upbit -> User withdrawals (Buying/Staking Demand)* - Net Flow (Yellow Line): Daily balance change*/SELECTDATE_TRUNC('day', evt_block_time) as dt,-- [Inflow] Deposit to Upbit (Positive Bar)SUM(CASEWHEN "to" = 0x59faced23b5100bd8729cf32ef7b59c49908ed15THEN CAST(value AS DOUBLE) / 1e18ELSE 0END) as inflow_to_upbit,-- [Outflow] Withdrawal from Upbit (Negative Bar)SUM(CASEWHEN "from" = 0x59faced23b5100bd8729cf32ef7b59c49908ed15THEN -(CAST(value AS DOUBLE) / 1e18) -- Negative for diverging chartELSE 0END) as outflow_from_upbit,-- [Net Flow] Inflow - OutflowSUM(CASEWHEN "to" = 0x59faced23b5100bd8729cf32ef7b59c49908ed15 THEN CAST(value AS DOUBLE) / 1e18ELSE -(CAST(value AS DOUBLE) / 1e18)END) as net_flowFROM tokamak_network_ethereum.TON_evt_TransferWHERE evt_block_time >= DATE('2024-01-01') -- Start form Jan 1, 2024AND ("from" = 0x59faced23b5100bd8729cf32ef7b59c49908ed15OR"to" = 0x59faced23b5100bd8729cf32ef7b59c49908ed15)GROUP BY 1ORDER BY 1 DESC