Query editor
with nrg_trades as (selectdate_trunc('hour', block_time) as hour,casewhen token_bought_mint_address = '9f52wiW2zrt2497HroMHtZtuj7VzWu4AsEusmW3pump'then token_sold_amount / nullif(token_bought_amount, 0)when token_sold_mint_address = '9f52wiW2zrt2497HroMHtZtuj7VzWu4AsEusmW3pump'then token_bought_amount / nullif(token_sold_amount, 0)end as price_solfrom dex_solana.tradeswhereblock_time >= now() - interval '90' dayand (token_bought_mint_address = '9f52wiW2zrt2497HroMHtZtuj7VzWu4AsEusmW3pump'or token_sold_mint_address = '9f52wiW2zrt2497HroMHtZtuj7VzWu4AsEusmW3pump')and (token_bought_symbol = 'WSOL'or token_sold_symbol = 'WSOL'))selecthour,approx_percentile(price_sol, 0.5) as price_solfrom nrg_tradeswhere price_sol is not nullgroup by 1order by 1