# features.md Source of truth: every feature below is a module under `modules/` that the app imports as a router in `app/composition.py`, plus the inline features wired directly in `app/main.py`. No `.md` file was used to derive this list — only code. ## How to read this file - **Feature** = a mounted module or an inline app route group. - **Module feature** = `modules//routes.py` (and the code it delegates to) with its real API + page handlers. - **Capability** = each handler/endpoint/route with the behavior that code implements. - Only what the app actually wires is included. Modules on disk that are not imported by the app are not features here. ## Feature: app core / inline Source: `app/main.py`, `app/composition.py`, lifespan + middleware + static mounts. Capabilities: - Root redirect `GET /` → `/scan` - Legacy redirect `GET /scanner.html` → `/scan` - Chat redirect `GET /chat` → `/` - Risk redirect `GET /risk` → `/scan?risk=1` - Yahoo Finance proxy `GET /proxy` (restricted to `query1.finance.yahoo.com /v8/finance/*`) - Runtime metrics `GET /metrics` - Favicon redirect `GET /favicon.ico` → `/static/favicon.ico` - Static mounts `/static`, `/static/js`, `/css`, `/playbook-uploads` - GZip, rate-limit, metrics and security-headers middleware - Lifespan startup: env load, app context/DataManager/providers, optional Hub config restore, news-batch warm-up, SEC notification poller start - Lifespan shutdown: close LLM agents, stop poller + signals + monitor feeds + shared browser + Yahoo client + SEC client, clear resolvers, close app context - Inline LLM surface: `POST /api/chat` (SSE stream with tool_call/tool_result/text/error/done events), `GET /api/llm/status`, `GET /api/llm/models`, `POST /api/llm/model` - Composition root explicitly includes all module routers in a fixed historical order, then static page routers ## Feature: Scan Source routers: `modules/scan/routes.py` (`router`, `page_router`), tag `scan`/`scan-page`. Page: - `GET /scan` → static `scan.html` (keeps query) API capabilities: - `GET /api/scan` response model `ScanResponse` - `GET /api/scan/press-release` response model `PressReleaseResponse` - `GET /api/scan/calendar/events` - `GET /api/scan/calendar` response model `CalendarResponse` - `GET /api/scan/calendar/export` Companion modules consulted from here: `core/dsl/` (filter language used by scan/calendar), `modules/scan/service.py`, calendar helpers. ## Feature: Screener Source router: `modules/screener/routes.py`, tag `screener`. Capacities: - `POST /api/screener/clear-finviz-cache` - `POST /api/screener` response model `ScreenerResponse` Companion code: `modules/screener/service.py`. ## Feature: At-Risk Source routers: `modules/at_risk/routes.py` (`router`, `page_router`), tag `at-risk`/`at-risk-page`; screen registry in `modules/at_risk/registry.py`. Page: - `GET /at-risk` API capabilities: - `GET /api/at-risk/screens` response model `AtRiskScreensResponse` - `GET /api/at-risk/screen/{key}` response model `AtRiskScreenResponse` - `GET /api/at-risk/delisting` response model `DelistingResponse` - `GET /api/at-risk/non-compliant` response model `NonCompliantResponse` - `GET /api/at-risk/ssr` response model `SSRResponse` - `GET /api/at-risk/halts` response model `TradeHaltResponse` - `GET /api/at-risk/reverse-splits` response model `ReverseSplitResponse` - `GET /api/at-risk/dilution` response model `DilutionResponse` - `GET /api/at-risk/low-float` response model `LowFloatResponse` - `GET /api/at-risk/high-short` response model `HighShortInterestResponse` - `GET /api/at-risk/chinese-profile` response model `ChineseProfileResponse` - `GET /api/at-risk/penny-stocks` response model `PennyStockResponse` Bankruptcy tab sits on the same at-risk page under its own module. ## Feature: Bankruptcy Source routers: `modules/bankruptcy/routes.py` (`router`, `page_router`), tag `bankruptcy`/`bankruptcy-page`. Page: - `GET /bankruptcy` → redirects into `/at-risk` API capabilities: - `GET /api/bankruptcy` response model `BankruptcyResponse` - `GET /api/bankruptcy/{symbol}/price-history` - `POST /api/bankruptcy/dismiss` - `DELETE /api/bankruptcy/dismiss` - `GET /api/bankruptcy/dismissed` Companion code: `modules/bankruptcy/service.py`, `modules/bankruptcy/logic.py`, `modules/bankruptcy/classify.py`, `modules/bankruptcy/validation.py`. ## Feature: Research / gap analyzer Source routers: `modules/research/routes.py` (`router`, `page_router`), tag `research`/`research-page`. Page: - `GET /research` → `static/research.html` (keeps query, drops stale `tab`) API capabilities: - `GET /api/research/symbol/{symbol}` response model `ResearchReportResponse` - `GET /api/research/cohort` response model `ResearchReportResponse` - `GET /api/research/context/{symbol}` response model `ResearchContextResponse` - `GET /api/research/filings/preview` - `GET /api/research/filings/document` - `POST /api/research/summary/{symbol}` - `GET /api/research/notes/{symbol}` response model `ResearchNote` - `PUT /api/research/notes/{symbol}` response model `ResearchNote` - `DELETE /api/research/notes/{symbol}` response model `ResearchNote` Checklist sub-capabilities under research (requested explicitly for the checklist tab): - `GET /api/research/checklist/health/{symbol}` - `GET /api/research/checklist/shelf/{symbol}` - `GET /api/research/checklist/baby/{symbol}` - `GET /api/research/checklist/realfloat/{symbol}` - `GET /api/research/checklist/warrants/{symbol}` Companion code: `modules/research/service.py`, `modules/research/history.py`, `modules/research/events.py`, `modules/research/notes.py`, `modules/research/summary.py`, `modules/research/filings.py`. ## Feature: Reports Source routers: `modules/reports/routes.py` (`router`, `page_router`), tag `reports`/`reports-page`. Page: - `GET /reports` → redirects to `/backtest?tab=reports` (keeps query, sets `tab`) API capabilities: - `GET /api/reports/dates` response model `ReportDatesResponse` - `GET /api/reports/candidates` response model `ReportResponse` Companion code: `modules/reports/service.py`, `modules/reports/plan.py`, `modules/reports/study.py`, `modules/reports/logic.py`. ## Feature: Backtest + Alert Configs Source routers: `modules/backtest/routes.py` (`router`, `page_router`), tag `backtest`/`backtest-page`. Page: - `GET /backtest` API capabilities: - `GET /api/backtest/status` - `GET /api/backtest/alert-configs` - `GET /api/backtest/alert-elements/catalog` - `POST /api/backtest/alert-configs/preview` - `POST /api/backtest/alert-configs/validate` - `POST /api/backtest/alert-configs` - `PUT /api/backtest/alert-configs/{config_id}` - `DELETE /api/backtest/alert-configs/{config_id}` - `POST /api/backtest/alert-configs/simulate` response model `AlertSimulateResponse` - `POST /api/backtest/start` - `POST /api/backtest/pause` - `POST /api/backtest/resume` - `POST /api/backtest/stop` - `WEBSOCKET /api/backtest/stream` Companion code: `modules/backtest/service.py`, `modules/backtest/logic.py`, `modules/backtest/models.py`, `modules/backtest/validation.py`, `core/detectors/`. ## Feature: Dashboard Source routers: `modules/dashboard/routes.py` (`router`, `page_router`), tag `dashboard`/`dashboard-page`; models in `modules/dashboard/models.py`. Page: - `GET /dashboard` → `static/dashboard.html` API capabilities: - `GET /api/dashboard/external-feed-sources` - `GET /api/dashboard/news-feed` - `GET /api/dashboard/filings/{symbol}` - `GET /api/dashboard/widgets` - `POST /api/dashboard/widgets` - `PUT /api/dashboard/widgets/{widget_id}` - `DELETE /api/dashboard/widgets/{widget_id}` - `GET /api/dashboard/tabs` - `POST /api/dashboard/tabs` - `PUT /api/dashboard/tabs/{tab_id}` - `DELETE /api/dashboard/tabs/{tab_id}` - `WEBSOCKET /api/dashboard/widgets/{widget_id}/stream` Widget types supported (from `WidgetRequest.type` vocabulary): `alert`, `toplist`, `external_feed`, `chart`, `watchlist`, `stock_info`, `news`, `newsfeed`, `at_risk`, `screener`, `filings`, `dilution`, `custom`. External feed sources supported (from `EXTERNAL_FEED_SOURCES`): `momo`, `titan`, `titan_news`, `titan_filings`, `titan_halts`. ## Feature: Analysis / stock catalysts Source routers: `modules/analysis/routes.py` (`router`, `page_router`), tag `analysis`/`analysis-page`. Page: - `GET /analyze` → `static/analyze.html` (keeps query if `symbol` present) API capabilities: - `GET /api/stock-catalysts/{symbol}` response model `StockCatalystsResponse` - `GET /api/stock-catalysts/{symbol}/fast` - `GET /api/stock-catalysts/{symbol}/news` - `GET /api/news/batch` Companion code: `modules/analysis/helpers.py`, `modules/analysis/logic`, `adapters.nasdaq_compliance`. ## Feature: Dilution / SEC dilution tracker Source routers: `modules/dilution/routes.py` (`router`, `page_router`) and `modules/dilution/offerings.py` (separate `router`), tag `dilution`/`dilution-page`. Pages: - `GET /dilution` → redirects to `/research?view=dilution` - `GET /rdo` → redirects to `/research?view=dilution` API capabilities: - `GET /api/dilution/{symbol}/registrations` - `GET /api/dilution/checklist/{symbol}` - `GET /api/dilution/{symbol}` response model `DilutionTrackerResponse` - `GET /api/dilution/finviz/{symbol}` - `GET /api/dilution/{ticker}/offerings` response model `OfferingsResponse` Companion code: `modules/dilution/offerings.py`, `core/sec/profile.py`, `core/sec/shelf.py`, `core/sec/client.py`, `core/sec/sections.py`, `core/sec/unlocks.py`, `core/sec/ownership.py`, `core/sec/baby_shelf.py`, `core/sec/registrations.py`, `core/checklist/health_audit.py`, `core/checklist/shelf_atm.py`. ## Feature: Discover Source routers: `modules/discover/routes.py` (`router`, `page_router`), tag `discover`/`discover-page`; day-symbol sources in `modules/symbol_sources/service.py`. Page: - `GET /discover` API capabilities: - `GET /api/discover/presets` response model `DiscoverPresetsResponse` - `GET /api/discover/fallback` response model `DiscoverFallbackResponse` - `POST /api/discover/patterns` response model `DiscoverPatternsResponse` - `POST /api/discover/descriptions/warm` response model `DiscoverDescriptionWarmResponse` Companion code: `modules/discover/service.py`, `modules/symbol_sources/service.py`, `core/discover_sessions.py`. ## Feature: DSL Source router: `modules/dsl/routes.py`, tag `dsl`. Capacities: - `GET /api/dsl/schema` response model `DslSchemaResponse` Companion code: `core/dsl/grammar.py`, `core/dsl/parser.py`, `core/dsl/security.py`, `core/dsl/daily_scan.py`, `core/dsl/compiler.py`, `core/dsl/contexts.py`, `core/dsl/series_eval.py`. ## Feature: Chart Source routers: `modules/chart/routes.py` (`router`, `page_router`), tag `chart`/`chart-page`. Page: - `GET /chart` → `static/chart.html` API capabilities: - `GET /api/chart/ohlc` - `GET /api/chart/quotes` response model `ChartQuotesResponse` - `GET /api/chart/retest-levels` - `GET /api/chart/confluence-levels` - `GET /api/chart/alerts` response model `ChartAlertsResponse` - `PUT /api/chart/alerts/{alert_id}` response model `ChartAlertOut` - `POST /api/chart/alerts/sync` response model `ChartAlertsSyncResponse` - `DELETE /api/chart/alerts/{alert_id}` response model `ChartAlertsResponse` - `DELETE /api/chart/alerts` response model `ChartAlertsResponse` - `GET /api/chart/search` response model `SymbolSearchResponse` Companion code: `core/ohlc.py`, `modules/chart/retest_levels.py`, `modules/chart/confluence_levels.py`, `modules/chart/calendar` (used by scan/calendar scopes). ## Feature: Trades Source routers: `modules/trades/routes.py` (`router`, `page_router`), tag `trades`/`trades-page`. Page: - `GET /trades` → `static/trades.html` API capabilities: - `GET /api/trades/status` response model `SchwabStatusResponse` - `GET /api/trades/auth-url` response model `SchwabAuthUrlResponse` - `POST /api/trades/auth/callback` response model `SchwabAuthCallbackResponse` - `POST /api/trades/auth` response model `SchwabAuthStartResponse` - `GET /api/trades/transactions` response model `TradeTransactionsResponse` - `GET /api/trades/annotations` response model `TradeAnnotationsListResponse` - `POST /api/trades/annotations/{trade_key:path}` response model `TradeAnnotationResponse` Companion code: `core/trades/providers.py`, `core/trades/cache.py`, `modules/schwab/client.py`. ## Feature: Schwab Source router: `modules/schwab/compat.py`, tag `schwab`. This is the Schwab-specific legacy surface, separate from the broker-agnostic Trades module. The former standalone Schwab router was retired: the compat module now re-exports the Schwab endpoints from `modules/trades/routes.py` (one implementation, not two), and the tests import the router through it. API capabilities: - `GET /api/schwab/status` response model `SchwabStatusResponse` - `GET /api/schwab/auth-url` response model `SchwabAuthUrlResponse` - `POST /api/schwab/auth/callback` response model `SchwabAuthCallbackResponse` - `POST /api/schwab/auth` response model `SchwabAuthStartResponse` - `GET /api/schwab/transactions` response model `SchwabTransactionsResponse` - `GET /api/schwab/annotations` response model `TradeAnnotationsListResponse` - `POST /api/schwab/annotations/{trade_key:path}` response model `TradeAnnotationResponse` - `GET /api/schwab/price-history` response model `SchwabPriceHistoryResponse` Companion code: `modules/schwab/client.py`, `modules/schwab/provider.py`. ## Feature: Playbook Source routers: `modules/playbook/routes.py` (`router`, `page_router`), tag `playbook`/`playbook-page`. Pages: - `GET /playbook` → redirects to `/trades?tab=playbook` API capabilities: - `GET /api/playbook` response model `PlaybookResponse` - `POST /api/playbook` response model `PlaybookSetup` - `PUT /api/playbook/{setup_id}` response model `PlaybookSetup` - `DELETE /api/playbook/{setup_id}` - `POST /api/playbook/{setup_id}/screenshots` response model `PlaybookSetup` - `DELETE /api/playbook/{setup_id}/screenshots/{screenshot_id}` response model `PlaybookSetup` - `POST /api/playbook/{setup_id}/screenshots/{screenshot_id}/cover` response model `PlaybookSetup` Companion code: `modules/playbook/service.py`, `modules/playbook/`. ## Feature: Alpaca Source routers: `modules/alpaca/routes.py` (`router`, `page_router`), tag `alpaca`/`alpaca-page`. Page: - `GET /alpaca-locates` → `static/alpaca-locates.html` API capabilities: - `GET /api/alpaca/locates/{symbol}` Companion code: `adapters/alpaca_broker.py`, `core/ports.py`. ## Feature: Level 2 Source routers: `modules/level2/routes.py` (`router`, `page_router`), tag `level2`/`level2-page`. Page: - `GET /level2` → redirects onto `/chart` with the same query API capabilities: - `GET /api/level2/status` response model `Level2StatusResponse` - `POST /api/level2/subscribe` response model `Level2SubscribeResponse` - `WEBSOCKET /api/level2/stream` Companion code: `core/streaming/ports.py`, `modules/schwab/streaming.py`, `modules/level2/coinbase_streaming.py`. ## Feature: Three DS Source routers: `modules/three_ds/routes.py` (`router`, `page_router`), tag `three_ds`/`three_ds-page`. Pages: - `GET /3ds` → redirects to `static/3ds.html` API capabilities: - `GET /api/three_ds/history` Companion code: `modules/three_ds/service.py`. ## Feature: Day Movers Source routers: `modules/movers/routes.py` (`router`, `page_router`), tag `movers`/`movers-page`. Pages: - `GET /movers` → redirects to `static/movers.html` (keeps query) API capabilities: - `GET /api/movers?session=YYYY-MM-DD&limit=1..500` response model `MoversResponse` — one session's gappers and runners (gap > 10%, relative volume > 3x, or change > 20% in either direction, on more than $1M of dollar volume) with their gap, change, intraday fade from the open, and the SEC filing that explains each move. `session` defaults to the newest session the daily table holds; a malformed or unknown session is a 400. Every row carries `prospectus_today`: a diluting-form prospectus (424B3/424B4/424B5) was filed ON the reported session rather than the day before, at a close of $10 or less. 424B2 is excluded because it is a large issuer's continuous shelf takedown and 0.0% of the measured movers that filed one collapsed; the price ceiling is where the measured effect flips from a median loss to a median gain. Over 60 measured sessions those names reached a <= -20% five-day drop 30.1% of the time against 20.5% for other movers at the same price (424B5 alone: 35.1%, and 14.0% across all movers regardless of price), so they are flagged `DILUTING`, sorted first, and can be filtered to alone with the page's checkbox. `high_to_close_pct` reports the session's close against its intraday high for EVERY row, read through the batched 1H reader (one request per session, Alpaca's own `adjustment="all"` so a split cannot fake a drawdown); it is null when the bars cannot be read. Measuring all rows rather than only the diluting ones was the point: with 6 of 231 filled, the dashes read as "no drawdown" and flattered the dilution argument. Measured across one session, diluting names had a median -26.1% drawdown against -6.7% for everything else that moved. `dilution_pct` is the shares offered over the shares outstanding before the offering, read from the prospectus cover by `modules/movers/dilution.py`. It is the actual magnitude rather than a cause label: measured cases include ANVS at 48.8% (21,000,000 offered against 43,022,520 outstanding) and DDD at 9.7%. Three things make it honest, and each one came from a real mis-read: a 424B3 resale does not dilute the issuer and is excluded; the offering size must sit in an offering sentence, because ANVS's cover also amends authorised shares to 140,000,000 and taking the largest number reported 325.4% from a 19,000,000-share offering; and a "to be outstanding after this offering" total is post-money, so the offered count is that total minus the preprint count. When the cover states an outstanding-before and outstanding-after pair the offered count is a subtraction rather than a guess, and that reading wins over every headline number: PARA states 2,072,632 prior and 7,035,867 after, a 239.5% dilution from a runner that quintupled its share count. Pre-funded warrants are added only when the cover does not already fold them into the stated size, because ANVS's 21,000,000 shares already include its 2,000,000 warrants and counting them again reported 53.5% for 48.8%. Not every missing percentage is a failure, and the difference is recorded in `dilution_kind`. An at-the-market programme sells in dollars over time and states no share count for any takedown (`atm`); a 424B3/424B7 registers a holder's shares and dilutes nobody (`resale`); only a primary offering whose cover omits one of the two numbers is a real gap (`not_measured`). Over ten sessions the split was 6 measured, 7 resale, 3 atm and 0 gaps, so measurable coverage is every case that has an answer. Measured values ranged 5.6% to 239.5%. Showing all the unmeasured rows as one dash told the reader a filing had failed when most of the time the question did not apply. Null never means zero: a routine top-up and an unreadable filing must not look the same. The `View` control answers two different questions. `All movers` is the server's own order, which puts the names diluting that session on top and then the worst drop: it is the list of what the session surfaced. `By drawdown` sorts every row by how far it fell from its own high, and this is the ordering the dilution flag was measured against. Sorting by gain cannot show the signal at all -- 0 of the top five gainers across 70 sessions carried a measured dilution, against 4 of 60 when the same sessions are read by drawdown. A row whose drawdown was not measured sorts last in this view, so a dash never reads as the worst fall of the day. Any column header sorts the table on click, and clicking it again flips the direction; the order is announced through `aria-sort` and the header is keyboard-reachable. A row with a missing value sorts last in both directions, because an unmeasured drawdown is not the deepest one. Sorting is in memory, so a click never costs a request. `movers-sort.ts` holds the rules and `tests/test_movers_sort.ts` pins them. A missing value sorts last in both directions, so turning the arrow around cannot smuggle a dash to the top where it reads as the most severe. The cause is decided from form 8-K item codes (2.02 earnings, 1.01/1.02/2.03/3.02 financing, 2.04 an accelerated obligation) and from the 424B prospectus family, ranked Offering > Financing > Debt event > Earnings, and reads `No filing` when nothing matches within the window. Filing body text is never matched: keyword search over dilution phrasing produced false positives on earnings exhibits (BDSX), so item codes are the only evidence used. 8-Ks and prospectuses are searched in SEPARATE EDGAR full-text queries per day, because a form filter mixing the two silently drops the prospectuses behind the 8-K volume. Companion code: `modules/movers/logic.py`, `modules/movers/service.py`, `modules/movers/flag_service.py`, `static/js/features/movers/movers-page.ts`, `static/css/movers.css`. ## Feature: Lists / reverse splits batch Source router: `modules/lists/routes.py`, tag `lists`; definitions in `modules/lists/definitions.py`, logic in `modules/lists/logic.py`, service in `modules/lists/service.py`. Capacities: - `GET /api/reverse-splits` response model `ReverseSplitsResponse` Companion code: `modules/lists/service.py`, `modules/lists/definitions.py`, `modules/lists/logic.py`, `adapters/splits_provider`. ## Feature: Market Pulse Source router: `modules/market_pulse/routes.py`, tag `market-pulse`. Capacities: - `GET /api/market-pulse/enrich` Companion code: `modules/market_pulse/service.py`, `adapters/smallcaplab`. ## Feature: Watchlist Source routers: `modules/watchlist/routes.py` (`router`, `page_router`), tag `watchlist`/`watchlist-page`. Page: - `GET /watchlist` → redirects to `/chart?panel=watchlist` (keeps `view` if present) API capabilities: - `GET /api/watchlist/labels` response model `WatchlistLabelsResponse` - `POST /api/watchlist/labels` response model `WatchlistLabelsResponse` - `GET /api/chart-notes` response model `ChartNotesResponse` - `POST /api/chart-notes` response model `ChartNotesResponse` - `GET /api/watchlist` response model `WatchlistResponse` - `POST /api/watchlist` response model `WatchlistResponse` Companion code: `modules/watchlist/service.py`, `core/shared/db.py` watchlist/chart-notes accessors. ## Feature: Settings Source routers: `modules/settings/routes.py` (`router`, `page_router`), tag `settings`/`settings-page`. Page: - `GET /settings` → redirects to `/scan?settings=1` API capabilities: - `GET /api/filters` response model `FiltersResponse` - `POST /api/filters` response model `FiltersResponse` - `DELETE /api/filters/{name}` response model `FiltersResponse` - `GET /api/hf/status` response model `HFStatusResponse` - `POST /api/hf/push-config` response model `SimpleSuccessResponse` - `POST /api/hf/restore-config` response model `HFRestoreResponse` - `GET /api/hf/restore-config` response model `HFRestoreResponse` - `GET /api/db/lock-stats` response model `DBLockStatsResponse` - `GET /api/hf/data-status` response model `HFDataStatusResponse` - `POST /api/hf/download-data` response model `SimpleSuccessResponse` - `POST /api/hf/sync` response model `HFSyncResponse` - `GET /api/hf/sync/progress` response model `HFSyncProgressResponse` Companion code: `core/infra/hf_manager.py`, `core/infra/data_manager.py`, `core/infra/data_sync.py`, `core/infra/data_sync.py`, `core/shared/db.py` filter/cfg accessors. ## Feature: Notifications Source router: `modules/notifications/routes.py`, tag `notifications`; service/logic in `modules/notifications/`. Capacities: - `GET /api/notifications` response model `NotificationListResponse` - `GET /api/notifications/prefs` response model `NotificationPrefsResponse` - `PUT /api/notifications/prefs` response model `NotificationPrefsResponse` - `POST /api/notifications/read` response model `MarkReadResponse` - `POST /api/notifications/poll` - `GET /api/notifications/status` response model `NotificationStatusResponse` Companion code: `modules/notifications/service.py`, `modules/notifications/logic.py`, `modules/notifications/__init__.py`, `modules/bankruptcy/classify.py` for bankruptcy classification used by the poller. ## Feature: Symbol Flags Source router: `modules/symbol_flags/routes.py`, tag `symbol-flags`; service/sources in `modules/symbol_flags/`. API capabilities: - `GET /api/symbol-flags` response model `list[SymbolFlagResponse]` - `GET /api/symbol-flags/fields` response model `SymbolFlagRegistryResponse` - `GET /api/symbol-flags/sources` response model `SymbolFlagSourcesResponse` - `POST /api/symbol-flags` response model `SymbolFlagResponse` - `PUT /api/symbol-flags/order` - `PUT /api/symbol-flags/{id}` response model `SymbolFlagResponse` - `DELETE /api/symbol-flags/{id}` Sources: reverse_split, bankruptcy, non_compliant, delisting_risk, ssr, halted, recent_offering, and prospectus_today. The last one is `GET /api/symbol-flags/sources?sources=prospectus_today`, backed by `modules/movers/flag_service.py`: it marks symbols that filed a diluting-form prospectus (424B3/424B4/424B5) in the last completed session at a close of $10 or less, so the names carry a flag in Scan the next morning instead of waiting for someone to open the Day Movers report. It is warmed at startup in the background (one session of EDGAR full-text search, ~20s cold) and cached for the rest of the New York day, because a completed session's filings cannot change. It is a flag to look at, not a trigger: 35% of those names top within two hours, so the opening print does not reveal the outcome. Companion code: `modules/symbol_flags/service.py`, `modules/symbol_flags/sources.py`, `modules/movers/flag_service.py` for the prospectus-today source, `modules/bankruptcy/service.py` for bankruptcy flag source. ## Feature: Monitor Source router: `modules/monitor/routes.py`, tag `monitor`. API capabilities: - `WEBSOCKET /api/monitor/{source}` Feed sources supported (from router registry): `momo`, `titan`, `titan_news`, `titan_filings`, `titan_halts`. Companion code: `modules/monitor/generic_scraper.py`, `modules/monitor/titan_scraper.py`, `modules/monitor/momo_scraper.py`, `modules/monitor/shared_browser`, `modules/dashboard/models.py` for the feed source map. ## Feature summary Features currently wired into the app: - app core / inline - scan - screener - at-risk - bankruptcy - research / gap analyzer - reports - backtest + alert configs - dashboard - analysis / stock catalysts - dilution / SEC dilution tracker - discover - dsl - chart - trades - schwab - playbook - alpaca - level 2 - three ds - lists / reverse splits batch - market pulse - watchlist - settings - notifications - symbol flags - monitor - day movers That is the feature list from code. Each feature’s capabilities above are the handlers/endpoints/routes it actually exposes.