Calculation

How Average Buying Sum Is Calculated

Average buying sum uses every retained buy-side TradeEvent and normalizes supported quote amounts to SOL before averaging.

Accumulator formula

StepCalculation
Select eventsUse buy-side TradeEvent rows retained in the full cache window.
Normalize SOL quotesTreat SOL and wrapped-SOL quote amounts as lamports.
Normalize USDC quotesConvert USDC base units to lamports with the cached SOL/USD rate before accumulation.
AccumulateIncrement retained buy_lamports and buy_count; subtract both when an event expires.
AverageDivide 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.