Query editor
with token_prices as (selectblock_time,amount_usd / (token_bought_amount + token_sold_amount) as price_per_tokenfromdex.tradeswhere(token_bought_address = 0x621E87AF48115122Cd96209F820fE0445C2ea90eor token_sold_address = 0x621E87AF48115122Cd96209F820fE0445C2ea90e)and block_time >= now() - interval '3' hour),latest_price as (selectavg(price_per_token) as price_per_tokenfromtoken_prices)selectlp.price_per_token,74747474747 as total_supply,lp.price_per_token * 74747 as market_capfromlatest_price lp;