Query editor
-- to determin PRICE of a polygon token-- get the transaction from the erc20_polygon.evt_Transfer table-- and join it to the dex_trades table via transaction hash-- filter where you buy $RVRS for $USDC-- Price = value / amount_usdSELECT date_trunc('day', evt_block_time) AS DAY, contract_address, evt_tx_hash, amount_usd, round(cast(value as double) / 1e9), amount_usd/round(cast(value as double) / 1e9) as PRICE, token_bought_amount, token_sold_address, token_sold_amount, value, blockchain, token_bought_address, token_sold_addressFROM erc20_polygon.evt_Transfer, dex.tradesWHERE contract_address = 0x5dd175a4242afe19e5c1051d8cd13fc8979f2329 -- $RVRS tokenAND token_sold_address = 0x2791bca1f2de4661ed88a30c99a7a9449aa84174 -- USDC tokenAND evt_tx_hash = tx_hashORDER BY 1 DESCLIMIT 100