Query by @astrolabe-rwa, updated 2026-10-04. #rwa #commodities #gold
Example query
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 dayCharts: Gold, silver, copper, uranium, oil tokens: daily price, USD (log scale), Commodity tokens: daily volume, USD.
| day | symbol | price_usd | volume_usd |
|---|---|---|---|
| 2026-11-09 | COPX | 73.39 | 13364.0 |
| 2026-11-09 | URA | 33.4 | 6100.0 |
| 2026-11-09 | GLDx | 376.96 | 278524.0 |
| 2026-11-09 | GOLD | 4103.67 | 1768.0 |
| 2026-11-09 | USO | 147.23 | 134696.0 |
| 2026-11-10 | USO | 140.03 | 24405.0 |
| 2026-11-10 | GOLD | 4072.5 | 2056.0 |
| 2026-11-10 | GLDx | 372.03 | 257922.0 |
| 2026-11-10 | URA | 33.29 | 3167.0 |
| 2026-11-10 | COPX | 73.37 | 8779.0 |
| 2026-11-11 | GOLD | 4022.65 | 1775.0 |
| 2026-11-11 | URA | 33.57 | 5175.0 |
| 2026-11-11 | USO | 142.62 | 8507.0 |
| 2026-11-11 | COPX | 73.77 | 9630.0 |
| 2026-11-11 | GLDx | 370.06 | 327041.0 |
| 2026-11-12 | GOLD | 3961.96 | 1553.0 |
| 2026-11-12 | GLDx | 360.9 | 335170.0 |
| 2026-11-12 | COPX | 71.47 | 8424.0 |
| 2026-11-12 | URA | 32.68 | 2809.0 |
| 2026-11-12 | USO | 142.4 | 12205.0 |
| 2026-11-13 | URA | 32.14 | 5014.0 |
| 2026-11-13 | COPX | 70.22 | 6226.0 |
| 2026-11-13 | GOLD | 3906.24 | 1251.0 |
| 2026-11-13 | GLDx | 356.43 | 343616.0 |
| 2026-11-13 | USO | 145.73 | 10073.0 |
| 2026-11-14 | GOLD | 3874.45 | 1599.0 |
| 2026-11-14 | USO | 142.96 | 3271.0 |
| 2026-11-14 | GLDx | 349.14 | 406568.0 |
| 2026-11-14 | COPX | 68.79 | 1549.0 |
| 2026-11-14 | URA | 30.73 | 2765.0 |
First 30 of 68 rows. Computed 2026-11-23T11:23:16Z.