Skip to content

feat: integrate price_cache into LLM chat (fin-o1rs)#5

Open
team2human wants to merge 2 commits intoed-donner:mainfrom
team2human:polecat/jasper-mnyqpxlc
Open

feat: integrate price_cache into LLM chat (fin-o1rs)#5
team2human wants to merge 2 commits intoed-donner:mainfrom
team2human:polecat/jasper-mnyqpxlc

Conversation

@team2human
Copy link
Copy Markdown

Summary

  • Integrate price_cache into chat module for live market prices, P&L calculation, and portfolio value
  • Portfolio context sent to LLM now includes current prices, unrealized P&L per position, total portfolio value, and watchlist with prices
  • Trade execution uses cached market prices instead of hardcoded $150 fallback
  • Added CLAUDE.md to .gitignore (Gas Town artifact)

Test plan

  • uv run pytest backend/tests/test_chat.py — all 10 tests pass
  • Full test suite (47 tests) passes
  • Mock mode still works with fallback price when price_cache is empty

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