fix: add DASH-003 live trades and session rows

This commit is contained in:
2026-08-17 12:20:42 -04:00
parent e7b6ae5878
commit f617574b16
5 changed files with 180 additions and 9 deletions

View File

@@ -28,6 +28,7 @@
- Related: `docs/IDEAS_BACKLOG.md` (n8n AM Briefing — related but separate item), `NT8_SDK_Master_Document` Appendix B (Command Center spec — source of feature inspiration for external version).
- **Extension (2026-08-16):** Add outbound notification module to the dashboard's Python server (NOT to the NinjaScript strategy) using Apprise for unified Discord/Notifiarr/ntfy/etc. delivery. Alerts on FILL, SUBMIT, BREAKEVEN, CONNECTION LOST/RESTORED, daily P&L milestones. Bind server to 127.0.0.1 only, read-only endpoints, no POST/write routes. Poll interval must be explicit/configurable: 1-2s for live session-log tail, 5-10s for trades table/config panel.
- **Bugfix/Extension (2026-08-17):** Live server current-session selection now uses newest root-level `session_*.log` by file modification time and populates `current_session` even when notification offsets start at EOF. Dashboard adds a Bars/Days-Loaded panel from existing Historical readiness and FactorWarmup log lines.
- **[DASH-003] Bugfix/Extension (2026-08-17):** `/api/state` live trades now reads only the current session date's `trades_*.jsonl` instead of falling back to old historical trade records; `/api/state` also returns current-session rows/diagnostics so Daily Timeline, Config Integrity, Silent Day Explorer, and Decision/Defect headline populate without manual JSON load.
**[DASH-002] Continuous Confluence & Regime Telemetry** | Weekend window 2026-08-16 | 🔵 ACTIVE
- Scope: `src\` source change — adds `EnableStateTelemetry` parameter emitting periodic factor/regime state to session log (currently only logged at signal time). Additive observability only; existing SIGNAL/SUBMIT/FILL/PNL_UPDATE lines must remain byte-for-byte unaffected.