QTrade/docs
cuizhan 67b85ab232 Refactor: Implement WebSocket architecture with separated communication and business logic layers
- Implemented WebSocket protocol v1.0 specification with protocol headers, versioning, and batch support
- Renamed qtrade_server.py -> ws_server.py, client_adapter.py -> ws_client.py to reflect WebSocket implementation
- Created pure communication layer (WSClient) with only connect/send/close functionality
- Created business logic layer (BacktestClientAdapter) for protocol construction and signal parsing
- Updated bt_engine.py to use BacktestClientAdapter for strategy communication
- Fixed datetime formatting issues (time.strftime -> datetime.now().strftime for %f support)
- Fixed WebSocket 1000 OK close code logging issue
- Translated all logger output from Chinese to English for better compatibility
- Successfully tested with 242 K-lines data transmission

Architecture changes:
- networks/ layer: Pure WebSocket communication (no business logic)
- backtest/ layer: Business logic (protocol v1.0 message construction)
- Clear separation of concerns between transport and application layers
2025-12-25 16:15:56 +08:00
..
designs docs: 重组文档结构,新增GUI设计文档 2025-12-18 12:13:43 +08:00
requirements docs: 重组文档结构,新增GUI设计文档 2025-12-18 12:13:43 +08:00
tech_designs 实现GUI多子图K线图表 - 专业黑色主题 2025-12-22 21:10:36 +08:00
cache_storage_layout.md feat: 实现常量体系和指标自动更新机制 2025-12-23 17:56:01 +08:00
constants_guide.md feat: 实现常量体系和指标自动更新机制 2025-12-23 17:56:01 +08:00
technical_debt.md docs: 技术债务文档添加总览表格 2025-12-20 22:49:14 +08:00
websocket_protocol.md Refactor: Implement WebSocket architecture with separated communication and business logic layers 2025-12-25 16:15:56 +08:00