Board: per-day trade history + accurate day P&L; manual symbol weights

- momentum watch: replace 'open positions' with TODAY'S trade history (FIFO
  round-trips from the broker orders snapshot: time/symbol/qty/entry/exit/P&L +
  open lots), resets each day. Headline day P&L is broker-accurate (equity -
  last_equity, now carried on AccountSummaryUpdatedEvent), shown in the header
  and the panel title. sync_orders limit 50->500 so the log captures the whole
  day across restarts.
- SYMBOL_WEIGHTS: optional manual per-symbol priority nudge applied to the
  armed-trigger rank score (small; doesn't override gap/volume logic).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
momentum devandClaude Opus 4.8 committed 2026-06-17 17:33:22 -04:00
1 parent 906237bfe3
commit c35224af94
4 files changed
+123 -26

No files matched your search

+2 -1
View File
@@ -73,6 +73,7 @@ class AlpacaPaperSync:
cash_balance=float(account.get("cash") or 0),
buying_power=float(account.get("buying_power") or 0),
net_liquidating_value=float(account.get("equity") or 0),
last_equity=float(account.get("last_equity") or 0),
)
)
return account
@@ -110,7 +111,7 @@ class AlpacaPaperSync:
)
return positions
def sync_orders(self, status: str = "all", limit: int = 50) -> list[dict] | None:
def sync_orders(self, status: str = "all", limit: int = 500) -> list[dict] | None:
try:
raw = self.client.get_orders(status=status, limit=limit)
except Exception as exc: