Query editor
-- Shared source; group by series in the visualization.-- BNB equivalent includes all priced quote assets, converted at the same UTC day's BNB price.-- inner_volume_bnb remains actual native/WBNB volume for the supplementary chart.WITH bnb_price AS (SELECT cast(timestamp as date) day,max(price) bnb_usd_priceFROM prices.day WHERE blockchain='bnb'AND contract_address=0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095cAND timestamp>=cast(current_date-interval '89' day as timestamp)GROUP BY 1)SELECT s.*,p.bnb_usd_price,CASE WHEN p.bnb_usd_price>0 THEN s.inner_volume_usd/p.bnb_usd_price END inner_volume_bnb_equivFROM query_9153955 s LEFT JOIN bnb_price p ON cast(s.day as date)=p.dayWHERE s.group_level='family' ORDER BY s.day,s.series