Query editor
SELECTDATE_TRUNC('day', block_time) AS days,AVG(amount_usd / token_sold_amount) AS price,COUNT(*) AS NB_transactionsFROM dex.tradesWHEREtoken_sold_address = {{token_address}}GROUP BY DATE_TRUNC('day', block_time)ORDER BY days;
Query editor
1SELECT2DATE_TRUNC('day', block_time) AS days,3AVG(amount_usd / token_sold_amount) AS price,4COUNT(*) AS NB_transactions5FROM dex.trades6WHERE7token_sold_address = {{token_address}}8GROUP BY DATE_TRUNC('day', block_time)9ORDER BY days;10