Work
AXIOM
Problem
Institutional terminals (Bloomberg, Refinitiv) run as cloud-dependent services whose uptime and data handling you don't control. Running the analytics server yourself instead means it has to be reachable without exposing a public endpoint, and the regime-detection model it runs has to work on a market-regime dataset that is, by nature, short and regime-sparse — most of history is one or two regimes, not a rich sample of all of them — which makes it easy to overfit if you lean on a held-out validation split the way you normally would.
Approach
- Built the client natively in SwiftUI rather than a cross-platform shell — a smaller, faster macOS-only binary with no bundled browser runtime, at the cost of only running on macOS.
- Wrote the data and analytics server — ingestion, 50+ technical indicators, Markov Chain regime detection — in C++20 as a separate headless process rather than embedding it in the client, so the client stays thin and the server can run unattended on a machine the client doesn't own.
- Regime classification needed to avoid overfitting on a historically short, regime-sparse dataset, so I used AIC/BIC model selection instead of a held-out validation split, which would have thrown away too much of the already-scarce regime-transition data.
- Ran the server on AWS EC2 and connected the client to it over a Tailscale mesh instead of exposing a public endpoint — the tradeoff is the client only works where Tailscale is reachable, which is fine for a single operator and would need a real auth/ingress layer before anyone else could use it.
- Stored local state in SQLite3 in WAL mode rather than standing up a client-server database — no database process to operate, at the cost of no concurrent multi-process writes, which is acceptable for one terminal instance and would not scale to a team tool.
- Rendered the heatmap directly in the terminal using TrueColor output instead of a GUI chart, so the server stays debuggable over plain SSH without a display attached.
Outcome
A SwiftUI client talking to a C++20 headless server over a private Tailscale mesh, with regime detection selected by AIC/BIC rather than a held-out split, and local state persisted in SQLite3 WAL mode.
Current limitations
- Regime detection is model-selected via AIC/BIC, not validated against a held-out period — if the market enters a regime structurally unlike anything in the training window, the model has no built-in mechanism to flag that it is out of distribution.
- The Tailscale-mesh connection model works for a single operator; there is no auth or access-control layer in front of the server, so it is not a path to a multi-user deployment as it stands.