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:
Each stored analysis record includes stable replay fields so the record can be reused later:
analysisIdanalysisAtsignalcurrentPricestopLosstakeProfitengineVersionThose fields matter because backtesting now validates stored analysis records rather than re-deriving a different strategy view later.
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 in World Monitor is intentionally tied to stored analysis records, not just a raw signal replay.
Current flow:
This makes the feature closer to "validate prior premium analyses" than "rerun whatever the latest strategy code happens to do."
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.