Commit Graph

9 Commits

Author SHA1 Message Date
henry 24c7ee2bf1 Save ticker and last decision to DB; add order suggestion UI; upsert stocks with execution details; ensure analysis saves ticker
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-16 14:06:45 +02:00
henry b9711f2517 Display executionPlan in UI; add tests for Trader executionPlan parsing and TradingGraph execution step
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-16 13:53:04 +02:00
henry 15e49cb0f9 feat(tests): update Alpaca API tests to include range parameters and improve stock database cleanup
Run Tests / test (push) Failing after 8s
- Modified Alpaca Historical Bars tests to include range parameters in API requests.
- Updated test descriptions for clarity.
- Added cleanup step to delete test ticker after verification in stock database tests.
- Adjusted Vitest configuration to exclude test files from coverage.
2026-05-14 16:46:28 +02:00
henry cc22174b78 Add tests for Alpaca Historical Bars API
- Implemented tests for fetching historical bars for AAPL with different timeframes (1D, 5Min, 1H).
- Verified response structure and data integrity for each timeframe.
- Ensured that the API returns valid data and appropriate status for the requests.
2026-05-14 12:50:14 +02:00
henry d1a84325ae fix: pass bars data to TradingView chart correctly
- Include bars in loader response
- Convert timestamp to YYYY-MM-DD format for TradingView
- Fix error response to always include bars array
2026-05-14 11:23:33 +02:00
henry b4076f89b6 fix: add bars data for TradingView chart from Alpaca
- Modify quote.ts to fetch historical bars for chart data
- Update analyze.ticker.tsx to pass bars data to TradingViewChart
- Chart now displays candlestick data from Alpaca API
2026-05-14 11:19:22 +02:00
henry 77032a3c3a fix: improve stock detail page design
- Fix font colors (gray-900 for headings, gray-600 for secondary text)
- Replace JSON pre block with styled orders table
- Update design spec with visual details
2026-05-14 11:08:29 +02:00
henry 834a427c18 fix: use request URL for base URL in stock detail loader
- Fix TypeError from undefined BASE_URL in loader
- Use request.url to construct base URL dynamically
2026-05-14 11:04:17 +02:00
henry 2e22fd5635 feat: add stock detail page with chart, position, and orders
- Add /api/alpaca/orders endpoint for order history
- Add TradingView chart component for candlestick visualization
- Add /analyze/:ticker route with position and orders display
- Make ticker cells in analyze page clickable for navigation
2026-05-14 11:00:35 +02:00