Arithmetic illustration only, using synthetic trades on one hypothetical linear USDT perpetual. Trade prices are 100,102 and 99 USDT per coin; matching base-coin volumes are 2,1 and 3. Multiply each price by its own volume, then sum:
| Price | Base volume | Traded quote value |
|---|---|---|
| 100 | 2 | 200 USDT |
| 102 | 1 | 102 USDT |
| 99 | 3 | 297 USDT |
Total quote value =599 USDT; total base volume =6 coins. VWAP =599 /6 =99.833333… USDT per coin. The unweighted mean, (100 +102 +99) /3 =100.333333…, answers a different question because it gives each trade equal weight regardless of size.