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:
1 parent
906237bfe3
commit
c35224af94
4 files changed
+123
-26
No files matched your search
@@ -232,6 +232,9 @@ class AccountSummaryUpdatedEvent(BaseEvent):
|
||||
cash_balance: float = Field(description="Available cash balance")
|
||||
buying_power: float = Field(description="Buying power")
|
||||
net_liquidating_value: float = Field(description="Net liquidation value")
|
||||
last_equity: float = Field(
|
||||
default=0.0, description="Prior-session close equity (day P&L baseline)"
|
||||
)
|
||||
|
||||
|
||||
class AccountPositionsUpdatedEvent(BaseEvent):
|
||||
|
||||
Reference in new issue
Block a user