# TradingAgents Documentation ## ๐Ÿ“š Documentation Structure This documentation is organized into language-specific directories to serve different user communities: ### ๐Ÿ‡บ๐Ÿ‡ธ English Documentation (`en-US/`) **Status**: โœ… Included in version control Contains comprehensive guides for English-speaking users: - **Configuration Guide** (`configuration_guide.md`) - Detailed instructions for modifying system configurations and agent prompts - **Quick Reference** (`quick_reference.md`) - Quick lookup card for common modifications and file locations - **Prompt Templates** (`prompt_templates.md`) - Ready-to-use prompt templates for various agent roles ### ๐Ÿ‡จ๐Ÿ‡ณ Chinese Documentation (`zh-CN/`) **Status**: โœ… Included in version control Contains comprehensive guides in Chinese for Chinese-speaking users: - **ไธปๆ–‡ๆกฃ** (`README.md`) - ไธญๆ–‡็‰ˆ็ณป็ปŸๆฆ‚่งˆๅ’Œๅฟซ้€Ÿๅผ€ๅง‹ - **้…็ฝฎๆŒ‡ๅ—** (`configuration_guide.md`) - ่ฏฆ็ป†็š„้…็ฝฎไฟฎๆ”นๅ’Œๆ–ฐๅŠŸ่ƒฝ่ฎพ็ฝฎๆŒ‡ๅ— - **ๆžถๆž„ๆŒ‡ๅ—** (`architecture_guide.md`) - ็ณป็ปŸๆžถๆž„ๅ’ŒๆŠ€ๆœฏๅฎž็Žฐ่ฏฆ่งฃ - **ๅฟซ้€Ÿๅผ€ๅง‹ๆŒ‡ๅ—** (`quick_start_guide.md`) - 5ๅˆ†้’Ÿๅฟซ้€Ÿ่ฎพ็ฝฎๅ’Œไฝฟ็”จๆ•™็จ‹ - **ๅฟซ้€Ÿๅ‚่€ƒ** (`quick_reference.md`) - ๆ–ฐๆ‰‹ๅ‹ๅฅฝ็š„ๅฟซ้€ŸๆŸฅๆ‰พๅก็‰‡ - **ๆ็คบ่ฏๆจกๆฟๅบ“** (`prompt_templates.md`) - ๅฏ็›ดๆŽฅไฝฟ็”จ็š„ๆ็คบ่ฏๆจกๆฟ ## ๐ŸŽฏ Quick Start ### For English Users Navigate to [`en-US/`](en-US/) directory for: - System configuration instructions - Prompt customization guides - Template libraries - Troubleshooting tips ### For Chinese Users Navigate to [`zh-CN/`](zh-CN/) directory for: - ็ณป็ปŸ้…็ฝฎ่ฏดๆ˜Ž - ไธญๅ›ฝA่‚กๅธ‚ๅœบๅŠŸ่ƒฝ - ็™พ็‚ผ(DashScope)้›†ๆˆๆŒ‡ๅ— - ๆ•ฐๆฎๅบ“้…็ฝฎ่ฏดๆ˜Ž - ๆ็คบ่ฏๅฎšๅˆถๆŒ‡ๅ— - ๆžถๆž„ๆŠ€ๆœฏๆ–‡ๆกฃ - ๆ•…้šœๆŽ’้™คๆŠ€ๅทง ## ๐Ÿ“– Available Guides | Guide | English | Chinese | Description | |-------|---------|---------|-------------| | **Main Documentation** | [๐Ÿ“– View](en-US/) | [๐Ÿ“– ๆŸฅ็œ‹](zh-CN/README.md) | System overview and quick start | | **Configuration Guide** | [๐Ÿ“– View](en-US/configuration_guide.md) | [๐Ÿ“– ๆŸฅ็œ‹](zh-CN/configuration_guide.md) | Complete guide for modifying configurations and new features | | **Architecture Guide** | [๐Ÿ—๏ธ View](en-US/architecture_guide.md) | [๐Ÿ—๏ธ ๆŸฅ็œ‹](zh-CN/architecture_guide.md) | System architecture and technical implementation | | **Quick Start Guide** | [๐Ÿš€ View](en-US/quick_start_guide.md) | [๐Ÿš€ ๆŸฅ็œ‹](zh-CN/quick_start_guide.md) | 5-minute setup and usage tutorial | | **Quick Reference** | [๐Ÿ“‹ View](en-US/quick_reference.md) | [๐Ÿ“‹ ๆŸฅ็œ‹](zh-CN/quick_reference.md) | Quick lookup for common modifications | | **Prompt Templates** | [๐ŸŽฏ View](en-US/prompt_templates.md) | [๐ŸŽฏ ๆŸฅ็œ‹](zh-CN/prompt_templates.md) | Ready-to-use prompt templates | ## ๐Ÿ”ง Key Topics Covered ### Configuration Management - LLM provider settings (DashScope, OpenAI, Google, Anthropic) - **DashScope (Alibaba Cloud)**: Full support for Qwen model series โญ **Recommended for Chinese users** - **Current Setup**: DashScope as primary option with intelligent fallback - Market selection and data sources - **US Stock Market**: Yahoo Finance integration - **China A-Share Market**: TongDaXin API integration โญ **New Feature** - Database and caching systems - **MongoDB**: Persistent data storage - **Redis**: High-performance caching - **Intelligent Cache**: Automatic fallback mechanisms - Debate and discussion parameters - API configuration and limits ### Agent Customization - Market Analyst prompts - Fundamentals Analyst prompts - News and Social Media Analyst prompts - Bull/Bear Researcher prompts - Trader decision prompts - Reflection system prompts ### Advanced Features - **Multi-market support**: US stocks and China A-shares - **Database integration**: MongoDB and Redis for enterprise deployment - **Intelligent caching**: Adaptive cache management with fallback - **Multi-LLM support**: DashScope, OpenAI, Google, Anthropic - **TongDaXin integration**: Real-time A-share data access - Risk management templates - Performance optimization - Custom prompt creation - Environment-specific configurations ## ๐Ÿš€ Getting Started 1. **Choose Your Language**: Select the appropriate documentation directory 2. **Start with Quick Reference**: Get familiar with key file locations 3. **Read Configuration Guide**: Understand the system architecture 4. **Use Prompt Templates**: Copy and customize templates for your needs 5. **Test Changes**: Always test modifications in a safe environment ## ๐Ÿ› ๏ธ Development Workflow ### For Contributors 1. **English Documentation**: - Modify files in `en-US/` directory - Commit changes to version control - These will be available to all users 2. **Chinese Documentation**: - Modify files in `zh-CN/` directory - Keep changes local (not committed) - Use for local development and testing ### Version Control Policy - โœ… **Include**: `en-US/` directory and all English documentation - โœ… **Include**: `zh-CN/` directory and all Chinese documentation - โœ… **Include**: This README file for navigation - ๐ŸŽฏ **Rationale**: Both language versions provide value to the global community ## ๐Ÿ“ Contributing When contributing to documentation: 1. **Update English docs** for features that should be shared with the international community 2. **Update Chinese docs** for features that benefit Chinese-speaking users 3. **Maintain consistency** between language versions when possible 4. **Test all examples** before documenting them 5. **Consider localization** - some features may be more relevant to specific regions ## ๐Ÿ”— Related Resources - **Project Repository**: Main TradingAgents codebase - **Configuration Files**: `tradingagents/default_config.py`, `main.py` - **Agent Files**: `tradingagents/agents/` directory - **Test Files**: `tests/` directory (local only) ## ๐Ÿ“ž Support For questions about: - **Configuration**: See Configuration Guide - **Prompts**: See Prompt Templates - **Quick Help**: See Quick Reference - **Issues**: Submit to project repository --- ๐Ÿ’ก **Note**: This documentation structure allows for both community sharing (English) and local customization (Chinese) while maintaining clean version control.