Repository navigation
v1.1.0 — P&L Tracker, Fidelity import, intraday Pattern Scanner
A new P&L tab, intraday pattern scanning, and a production-hardening pass driven by a full backend + frontend audit. 172 tests passing.
Signals only — no trading execution. Alpha Terminal generates ideas; you decide what to do with them.
💰 P&L Tracker (new tab)
- Track contracts you take or find attractive: manual entry (stocks + options, long/short, paper vs real) and a one-click ➕ Track button on every option-chain row (1 contract at the live mid).
- Fidelity CSV import — both export flavors (Positions and Activity). Compact option symbols (
-NVDA260717C200) decoded, opening fills create positions, closing fills FIFO-match with correct partial-close splits, and re-imports are idempotent. The raw CSV is never persisted. - Live mark-to-market: chain-snapshot mid → last trade → day close, with a per-contract aggregate fallback after hours; stocks at the latest close.
- Realized / unrealized / total P&L, win rate, per-underlying rollup, and a realized equity curve. Close any position at the prefilled current mark.
- docs/FIDELITY_INTEGRATION.md documents the SnapTrade (Akoya OAuth) auto-sync upgrade path — and why stored-credential scraping is deliberately not supported.
🔎 Intraday Pattern Scanner
- All 12 chart-pattern detectors now run on 1-hour and 15-minute bars alongside daily, with a timeframe toggle and per-timeframe lookbacks.
- Intraday bars are regular-trading-hours only (premarket noise filtered) and read in US-Eastern exchange time on charts and signals.
- Historical win-rate thresholds scale with bar size (3% daily / 1.5% hourly / 0.75% on 15m over 20 bars) so "win" stays meaningful.
🛡 Production hardening
- Fixed an API-key log leak: the pattern data client passed the Polygon key as a URL query param, which httpx logged on every request. Now Bearer-header auth + httpx/httpcore capped at WARNING + sanitized errors + transient-timeout retry.
- Fixed a stale-closure bug and added a 5-minute SSE inactivity watchdog so a stalled backend can no longer leave the scan UI on "running" forever.
- Fixed a chat-context crash, unblocked the event loop in the sleeves-backtest pre-flight, made corrupt scan files degrade gracefully (422 + fallback), made watchlist writes atomic + validated.
- Removed 46 dead frontend files, consolidated the API base URL (was 22 hardcoded literals), and replaced every
alert()/confirm()with sonner toasts.
Full history: CHANGELOG.md