Query editor
-- Note: for some reason the deximals of this data feed are off by oneWITHtoken_sells AS (SELECT block_date, tx_hash, tx_from , token_sold_amount_raw/10e17 "amount", (token_bought_amount_raw/10e5)/(token_sold_amount_raw/10e17) as "price", 'SELL' as "order_type"FROMuniswap_v3_polygon.tradesWHEREtoken_sold_address=0x672688C6Ee3E750dfaA4874743Ef693A6f2538EDAND token_bought_address=0x2791bca1f2de4661ed88a30c99a7a9449aa84174),token_buys AS (SELECT block_date, tx_hash, tx_from , token_bought_amount_raw/10e17 "amount", (token_sold_amount_raw/10e5)/(token_bought_amount_raw/10e17) as "price", 'BUY' as "order_type"FROMuniswap_v3_polygon.tradesWHEREtoken_sold_address=0x2791bca1f2de4661ed88a30c99a7a9449aa84174AND token_bought_address=0x672688C6Ee3E750dfaA4874743Ef693A6f2538ED),token_transactions AS (SELECT *FROM token_sellsUNION ALL (SELECT *FROM token_buys))SELECT * FROM token_transactions ORDER BY block_date