Query editor
WITH price_feed AS (-- 1. Fetch live HYPE priceSELECT MAX(price) as priceFROM prices.latestWHERE blockchain = 'hyperevm'AND symbol = 'HYPE'),config AS (-- 2. Use that priceSELECT price as token_price FROM price_feed),combined_activity AS (-- V2 DataSELECT grossBet, evt_block_time FROM hypesino_hyperevm.hypesinov2_evt_spinrequestedUNION ALL-- V1 DataSELECT grossBet, evt_block_time FROM hypesino_v1_hyperevm.slotmachine5_evt_spinrequested)SELECTDATE_TRUNC('day', evt_block_time) as "Date",-- Bar Chart Data (Volume in USD)(SUM(CAST(grossBet AS DOUBLE)) / 1e18) * c.token_price as "Volume ($)",-- Line Chart Data (Activity Count)COUNT(*) as "Spin Count"FROM combined_activity, config cGROUP BY 1, c.token_priceORDER BY 1 DESC