mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-04 09:58:22 +08:00
b2c6925c89
Architecture improvements: - Extract AI decision engine to dedicated `decision` package - Create `mcp` package for Model Context Protocol client - Separate market data structures into `market/data.go` - Update trader to use new modular structure New packages: - `decision/engine.go` - AI decision logic and prompt building - `mcp/client.go` - Unified AI API client (DeepSeek/Qwen) - `market/data.go` - Market data type definitions Benefits: - Better separation of concerns - Improved code organization and maintainability - Easier to test individual components - More flexible AI provider integration - Cleaner dependency management Updated imports: - trader/auto_trader.go now uses decision and mcp packages - Consistent API across different AI providers Co-Authored-By: tinkle-community <tinklefund@gmail.com>