Commodities · daily price by token

Query by @astrolabe-rwa, updated 2026-10-04. #rwa #commodities #gold

Example query

SQL (ClickHouse)

SELECT block_date AS day, symbol, round(if(sumIf(usd_amount, venue = 'Raydium CLMM') >= 100, quantileExactWeightedIf(0.5)(price_usd, toUInt64(usd_amount * 100), venue = 'Raydium CLMM'), quantileExactWeighted(0.5)(price_usd, toUInt64(usd_amount * 100))), 2) AS price_usd, round(sum(usd_amount)) AS volume_usd
FROM ref.rwa_trades
WHERE block_date >= today() - {{days}} AND asset_class = 'commodity'
GROUP BY day, symbol
HAVING volume_usd >= 500
ORDER BY day

Charts: Gold, silver, copper, uranium, oil tokens: daily price, USD (log scale), Commodity tokens: daily volume, USD.

Result

daysymbolprice_usdvolume_usd
2026-11-09COPX73.3913364.0
2026-11-09URA33.46100.0
2026-11-09GLDx376.96278524.0
2026-11-09GOLD4103.671768.0
2026-11-09USO147.23134696.0
2026-11-10USO140.0324405.0
2026-11-10GOLD4072.52056.0
2026-11-10GLDx372.03257922.0
2026-11-10URA33.293167.0
2026-11-10COPX73.378779.0
2026-11-11GOLD4022.651775.0
2026-11-11URA33.575175.0
2026-11-11USO142.628507.0
2026-11-11COPX73.779630.0
2026-11-11GLDx370.06327041.0
2026-11-12GOLD3961.961553.0
2026-11-12GLDx360.9335170.0
2026-11-12COPX71.478424.0
2026-11-12URA32.682809.0
2026-11-12USO142.412205.0
2026-11-13URA32.145014.0
2026-11-13COPX70.226226.0
2026-11-13GOLD3906.241251.0
2026-11-13GLDx356.43343616.0
2026-11-13USO145.7310073.0
2026-11-14GOLD3874.451599.0
2026-11-14USO142.963271.0
2026-11-14GLDx349.14406568.0
2026-11-14COPX68.791549.0
2026-11-14URA30.732765.0

First 30 of 68 rows. Computed 2026-11-23T11:23:16Z.