Skip to content

Claude/market data backend design lk5 qz#9

Open
michaellak66 wants to merge 4 commits intoed-donner:mainfrom
michaellak66:claude/market-data-backend-design-LK5Qz
Open

Claude/market data backend design lk5 qz#9
michaellak66 wants to merge 4 commits intoed-donner:mainfrom
michaellak66:claude/market-data-backend-design-LK5Qz

Conversation

@michaellak66
Copy link
Copy Markdown

Added from Claude 4.6 Opus development

michaellak66 and others added 4 commits March 8, 2026 20:02
…2960574173

Add Claude Code GitHub Workflow
Comprehensive design doc covering the complete market data subsystem:
unified MarketDataSource interface, PriceCache, GBM simulator with
Cholesky-correlated moves, Massive API REST poller, SSE streaming
endpoint, FastAPI lifecycle integration, and testing strategy. Includes
full code snippets matching the implemented modules in backend/app/market/.

https://claude.ai/code/session_01WYDhvFAgd3T6mYSrYwCcv3
balalr92 referenced this pull request in balalr92/finally May 7, 2026
- Add POST /api/chat endpoint with OpenAI gpt-5.4-mini structured output
- Auto-execute trades and watchlist changes from LLM response
- LLM_MOCK=true returns deterministic response for testing/CI
- Add openai dependency via uv
- Fix SQLite check_same_thread for async endpoints
- Add backend/tests/api/test_chat.py (6 tests, all passing)
- Update PLAN.md: Tasks #6 and #9 LLM integration marked DONE

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
balalr92 referenced this pull request in balalr92/finally May 7, 2026
- ChatPanel component: scrolling message history, user bubbles (purple/right), assistant bubbles (dark/left), animated typing indicator (three bouncing dots), Enter-to-send, disabled state while loading
- Trade confirmation cards: blue (buy) / purple (sell) border with ticker, quantity, price
- Watchlist change cards: yellow border with add/remove action
- Error cards: red border for API/validation errors
- Refreshes portfolio + history after AI executes trades or watchlist changes
- Header: AI Chat toggle button; highlights purple when open
- page.tsx: chatOpen state drives sidebar visibility; ChatPanel wired to refreshPortfolio
- types.ts: add ChatApiResponse matching backend ChatResponse schema
- api.ts: sendChatMessage now returns ChatApiResponse (was ChatMessage)
- npm run build passes with zero TypeScript errors

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants