Query editor
with data as(selectblock_time, hash, "from", to, (value/1e18) as tokens_spent, 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7 as token_contractfrom avalanche_c.transactionswhere "from" = 0xa4766ef02fc1daa3fb5f881b642b5c12e5e298f3and success = trueorder by 1 desc),price as(select * from prices.usd_latest where contract_address = 0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7)selectdate_trunc('day', block_time) as day, round(sum(a.tokens_spent*b.price), 2) as total_spent_USDfrom data ajoin price bon a.token_contract = b.contract_addressgroup by 1order by 1 desc