docs/premium-finance.mdx
Premium finance is the finance-variant layer providing stock-analysis capabilities within World Monitor. These features were originally inspired by a standalone daily_stock_analysis project but are now fully integrated into the World Monitor codebase.
This layer is intentionally split into:
core premium financeextra enrichment layersThe core layer is the part required for the premium feature to work. Extra layers improve output quality or efficiency but are not the source of truth.
The current premium finance scope includes:
The original standalone project included capabilities that were intentionally not carried over:
MarketService.WORLDMONITOR_API_KEY server-side, not just a locked UI.Primary handlers:
Primary contracts:
Panels:
Services and loading:
The premium stock-analysis engine was originally a TypeScript port of core logic from the standalone project, now fully native to World Monitor.
It computes:
signal / signalScore pairratingSignal / compositeScore pairEach stored analysis record includes stable replay fields so the record can be reused later:
analysisIdanalysisAtsignalratingSignalsignalScorecompositeScorecurrentPricestopLosstakeProfitengineVersionThe two signal pairs are intentionally separate: existing clients continue to receive a consistent technical signal and score, while updated clients surface the fundamentals-blended rating.
World Monitor still lacks a general-purpose relational backend, so premium finance currently uses Redis as the backend-owned source of truth.
Earlier iterations stored history locally per device and recomputed backtests on demand. The hardened version promotes those artifacts into the backend layer so:
Redis is used as:
It is not a relational finance ledger yet. Long-lived querying, rich pagination, and full auditability would still be better served by a future database layer.
Backtesting currently validates the technical signal model only. Yahoo's daily
price history does not provide point-in-time fundamentals, so the backtest must
not be interpreted as a historical replay of the live fundamentals-blended
rating. Responses expose ratingBasis: "technical_only" and use a distinct
technical-only engine version.
Current flow:
This validates the deterministic technical model against later price action. It does not claim to validate the live composite rating until a trustworthy point-in-time fundamentals dataset is available.
The daily market brief is a premium finance panel layered on top of the project's existing market and news infrastructure.
It:
This is a World Monitor native feature, not a direct port of the original project's scheduler/automation system.
Premium finance endpoints are enforced server-side.
Premium RPC paths are gated in:
This matters because a UI-only lock would still allow direct API usage from trusted browser origins.
Core premium finance currently depends on:
The provider-backed targeted stock-news layer is documented separately in PREMIUM_FINANCE_SEARCH.md.
There are three distinct cache or persistence behaviors in play:
The data loader refreshes stale symbols individually rather than recomputing the whole watchlist when only one symbol is missing or stale.
The core layer is:
The search-backed stock-news layer is intentionally separate because it improves analysis quality but is not required for the feature to function. If all search providers are unavailable, premium stock analysis still works using Google News RSS fallback.
See PREMIUM_FINANCE_SEARCH.md.
This feature is valid and production-usable within World Monitor's current architecture, but some boundaries remain explicit:
These boundaries keep the feature aligned with World Monitor's architecture.