Skip to content

feat: mark accepted orders pending with market-open tooltip - #67

Merged
kingabzpro merged 1 commit into
masterfrom
feat/pending-order-tag
Nov 14, 2026
Merged

kingabzpro merged 1 commit into
masterfrom
feat/pending-order-tag

Conversation

@kingabzpro

Copy link
Copy Markdown
Owner

Summary

  • Every paper order response now reports whether the US market is open (Alpaca GET /v2/clock): pending: true plus the next_open timestamp
  • When the market is closed, the manual trade confirmation and the auto-trade activity log show an amber PENDING tag whose hover tooltip says "Market is closed. The trade will perform when the market opens (date, time UTC)"
  • Orders are still always taken while the market is closed (Alpaca queues them and fills at the next open); a clock fetch failure degrades to no tag instead of blocking the order

Verified live: an order submitted with the market closed came back pending: true, next_open: 2026-11-16T09:30:00-05:00 and the UI rendered the tag with the tooltip.

Checks

  • pytest: 408 passed, 1 skipped (new tests: open-market order reports no pending, closed-market order reports pending + next open, clock failure degrades gracefully)
  • node chart tests: 7 passed; UI tests: 59 passed (manual and auto-trade flows assert the badge and its tooltip)

Every paper order now reports whether the market is open (Alpaca clock).
When it is closed, the manual trade status and the auto-trade log show a
PENDING tag whose hover text says the trade will perform at the next
market open, with the exact time. A clock fetch failure degrades to no
tag instead of blocking the order.
@kingabzpro
kingabzpro merged commit d534244 into master Nov 14, 2026
6 checks passed
@kingabzpro
kingabzpro deleted the feat/pending-order-tag branch November 14, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant