Files
evotraders/frontend
cillin 7e7a58769a feat: 添加新闻增量刷新和前端组件修复
- 新增 refresh_news_incremental/refresh_news_for_symbols 函数支持增量新闻获取
- 在 live cycle 中集成新闻刷新逻辑
- AgentFeed 支持 agentProfilesByAgent 显示模型信息
- StatisticsView 修复 stats 计算逻辑,使用 portfolioData 作为 fallback
- StockExplainView 修复 useEffect 依赖项问题
- AppShell/RoomView 传递 agentProfilesByAgent 属性
- start-dev.sh 调整日志级别为 warning 减少噪音

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 10:50:45 +08:00
..
2026-03-16 02:19:25 +08:00

QuickStart

cd frontend
npm install
npm run dev

Optional Direct Service Calls

The frontend still works with the compatibility backend entrypoint by default. In the current test-stage setup, split services are the recommended default. Point the frontend directly at those standalone services:

VITE_CONTROL_API_BASE_URL=http://localhost:8000/api
VITE_RUNTIME_API_BASE_URL=http://localhost:8003/api/runtime
VITE_NEWS_SERVICE_URL=http://localhost:8002
VITE_TRADING_SERVICE_URL=http://localhost:8001

Current direct-call coverage:

  • runtime panel + gateway port discovery
  • story
  • similar days
  • range explain
  • news for date
  • news categories

If these variables are not set, the frontend falls back to the existing WebSocket-driven compatibility flow.