Design a Running Price Statistics Class (2017-2025)
The newest versions are secondhand. A vendor list from January 2026 names a "moving-average signal system" for Akuna: rolling averages over a price stream that fire signals when they cross a threshold. Only that shape is known. Before that, a practice site listed a Data Scientist question in August 2025 that tracks the max, mean and mode of an integer stream in constant memory, then restricts all three to the last k values. A vendor list from November 2025 carries a "rolling statistics" title too. No software engineer candidate has written this prompt down since 2021. Treat it as a likely shape for a design or object-oriented round, and expect the details to move.
The firsthand reports are older and all from US loops, most of them Chicago. In April 2021 a software engineer got about 45 minutes to "design a class to compute the running mean, mode, and standard deviation for a stream of data. Be efficient." In January 2018 a C++ candidate had to process burst stock prices and report on a 5-second basis. In late 2017 one junior C++ engineer was asked for a moving average of time-varying prices, in an interview that was "design-focused with minimal pseudocode." Another, in October 2017, was asked how they'd store the information if values update every second.
It looks like a warm-up. It isn't one, because each statistic hides its own trap. Computing a mean is easy. Use the textbook formula for standard deviation on doubles and it goes wrong numerically. A mode is trivial until prices start leaving a window, and then a single "best so far" variable stops working. Reporting on a timer during a burst brings in threads, and a good answer walks into each of those on purpose.
Akuna CapitalPremium lesson · System design round
The Akuna Capital design, worked end to end.
- Requirements and scopeSystem design
- The API and data model
- The design, drawn out1 diagram
- 4 deep divesWith the tradeoffs
$49 a year · all 122 companies · instant access
21,000+ candidate reports
Akuna Capital interview guideKnow what Akuna Capital asks before you walk in.
30 coding · 5 system design · 16 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.