Query editor
selectconcat('<a href="https://etherscan.io/tx/',cast(tx_hash as varchar),'" target="_blank" >',substring(cast(tx_hash as varchar), 1,5), '...','</a>') as hash, block_time as time, casewhen taker = {{address}} then 'buy'else 'sell'end as action, casewhen taker = {{address}} then token_bought_amountelse token_sold_amountend as amount, casewhen taker = {{address}} then token_bought_symbolelse token_sold_symbolend as symbolfrom dex.tradeswhere token_bought_address = {{token_address_detail}}and (taker = {{address}} or maker = {{address}})order by block_time desc