Accumulator formula
| Step | Calculation |
|---|---|
| Select events | Use buy-side TradeEvent rows retained in the full cache window. |
| Normalize SOL quotes | Treat SOL and wrapped-SOL quote amounts as lamports. |
| Normalize USDC quotes | Convert USDC base units to lamports with the cached SOL/USD rate before accumulation. |
| Accumulate | Increment retained buy_lamports and buy_count; subtract both when an event expires. |
| Average | Divide retained buy_lamports by retained buy_count. |
Interpretation
The result is the average SOL-equivalent size of a retained buy, independent of the selectable chart-hour window.
Limitations
- The value changes as TradeEvent rows enter and leave backend retention.
- USDC conversion depends on the cached SOL/USD rate observed when each trade is accumulated.
- Unsupported quote assets fall back to the legacy SOL amount when one is available.