Query editor
with latest_stat as(selecthourr,cum_ron_deposited as total_deposited,cum_ron_withdrawn as total_withdrawn,cum_ron_deposited-cum_ron_withdrawn as net_depositedfrom query_4880706order by hourr desclimit 1)select ls.*,ls.total_deposited*pr.price as total_deposited_usd,ls.total_withdrawn*pr.price as total_withdrawn_usd,ls.net_deposited*pr.price as net_deposited_usdfrom latest_stat lsleft join prices.usd_latest pron date_trunc('day',ls.hourr)=date_trunc('day',pr.minute)where pr.contract_address=0xe514d9deb7966c8be0ca922de8a064264ea6bcd4-- select * from prices.usd_latest where contract_address=0xe514d9deb7966c8be0ca922de8a064264ea6bcd4-- 2025-07-03 12:00