Files
cillin 9bcc4221a4 refactor: remove mock trading functionality from backend and frontend
Removes all mock price simulation features:
- Delete MockPriceManager from backend/data/
- Remove mock_mode, enable_mock, is_mock_mode flags from services
- Remove mock CLI options and config
- Remove mock mode UI components and state from frontend
- Update tests to remove mock references

Now system supports only live and backtest modes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 13:38:51 +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.