Commit Graph

15 Commits

Author SHA1 Message Date
liuping e3811b6192 fix: resolve get_ticker function parameter mismatch error
� Problem Fixed:
- Remove duplicate get_ticker() function in main.py that had no parameters
- This function was overriding the correct get_ticker(market=None) from utils.py
- Caused TypeError: get_ticker() takes 0 positional arguments but 1 was given

 Solution:
- Delete old get_ticker() function from main.py (line 506-508)
- Keep only the correct get_ticker(market=None) function in utils.py
- Function now properly accepts market parameter for market-specific validation

� Test Results:
- Function signature: (market=None) -> str 
- Function location: cli/utils.py line 67 
- No import conflicts 
- CLI startup working 
- Market selection working 

Now users can successfully:
1. Select market (US Stock or China A-Share)
2. Enter ticker with market-specific validation
3. Continue with analysis workflow

The CLI now properly handles market selection and ticker input without parameter errors.
2025-07-06 02:18:15 +08:00
liuping 1c6b54a48e refactor: simplify market selection to English-only with US Stock and China A-Share
� Market Selection Simplification:
- Remove all Chinese text from CLI interface
- Remove Hong Kong Stock support (as requested)
- Keep only US Stock and China A-Share markets
- English-only error messages and validation

� Supported Markets:
1. US Stock
   - Examples: SPY, AAPL, TSLA, NVDA, MSFT
   - Format: 1-5 letter stock symbols
   - Data Source: Yahoo Finance
   - Pattern: ^[A-Z]{1,5}$

2. China A-Share
   - Examples: 000001, 600036, 300001, 688001
   - Format: 6-digit numeric codes
   - Data Source: TongDaXin API
   - Pattern: ^\d{6}$

� Technical Changes:
- Simplified market selection function
- Removed Chinese text from all user-facing messages
- Maintained TongDaXin integration for A-shares
- Kept format validation and data source routing
- English-only interface throughout

 Test Results:
- Market Selection:  Pass
- Supported Markets:  Pass (US + China A-Share only)
- Ticker Validation:  Pass (English messages)
- Data Source Routing:  Pass
- English-Only Interface:  Pass

� User Experience:
- Clean English-only interface
- Two clear market options
- Automatic format validation
- TongDaXin real-time data for A-shares
- No language barriers for international users

Supported Chinese Exchanges:
• Shanghai Stock Exchange: 60xxxx
• Shenzhen Stock Exchange: 00xxxx
• ChiNext Board: 30xxxx
• STAR Market: 68xxxx
2025-07-06 02:11:02 +08:00
liuping 8acf6feec0 fix: resolve DashScope embedding 404 error and add CLI model options
� Fixed Issues:
- Resolve 404 error when using DashScope LLM with OpenAI embeddings
- Add missing DashScope model options in CLI selection
- Improve embedding provider fallback logic

� Memory System Updates:
- Add DashScope embedding support (text-embedding-v3)
- Implement intelligent fallback: DashScope → OpenAI → Error
- Add proper API key validation and error messages
- Support multiple embedding providers based on LLM selection

� CLI Enhancements:
- Add DashScope models to SHALLOW_AGENT_OPTIONS and DEEP_AGENT_OPTIONS
- Support qwen-turbo, qwen-plus, qwen-max, qwen-max-longcontext
- Fix KeyError when selecting DashScope as LLM provider

 Test Results:
- All .env configuration tests pass
- DashScope embeddings working correctly
- Proper fallback to OpenAI when DashScope unavailable
- Memory initialization successful with real API keys

� Now users can successfully:
1. Select DashScope in CLI without errors
2. Use DashScope embeddings for memory system
3. Automatic fallback if DashScope unavailable
4. Complete end-to-end DashScope workflow
2025-07-06 01:43:13 +08:00
liuping cdba5bf780 feat: add DashScope (Alibaba Cloud) LLM provider support
- Add DashScope to CLI LLM provider selection (first option)
- Add DashScope support in TradingAgentsGraph with proper error handling
- Import ChatDashScope adapter with fallback for missing dependencies
- Update default_config.py with DashScope configuration comments
- Create comprehensive DashScope configuration example

Features added:
- DashScope provider selection in CLI (cli/utils.py)
- LLM initialization for DashScope models (trading_graph.py)
- Configuration validation and testing (examples/dashscope_config_example.py)
- Support for qwen-turbo, qwen-plus, qwen-max models
- Proper error handling for missing dashscope package

Usage:
1. Install: pip install dashscope
2. Configure: DASHSCOPE_API_KEY in .env file
3. Select 'DashScope (Alibaba Cloud)' in CLI
4. Use models: qwen-turbo (fast), qwen-plus (balanced), qwen-max (best)

This enables Chinese users to use Alibaba Cloud's Qwen models
for financial analysis with optimized Chinese language support.
2025-07-06 01:15:35 +08:00
Yijia Xiao 718df34932
Merge pull request #29 from ZeroAct/save_results
Save results
2025-06-26 00:28:30 -04:00
Max Wong 43aa9c5d09
Local Ollama (#53)
- Fix typo 'Start' 'End'
- Add llama3.1 selection
- Use 'quick_think_llm' model instead of hard-coding GPT
2025-06-26 00:27:01 -04:00
Yijia Xiao 26c5ba5a78
Revert "Docker support and Ollama support (#47)" (#57)
This reverts commit 78ea029a0b.
2025-06-26 00:07:58 -04:00
Geeta Chauhan 78ea029a0b
Docker support and Ollama support (#47)
- Added support for running CLI and Ollama server via Docker
- Introduced tests for local embeddings model and standalone Docker setup
- Enabled conditional Ollama server launch via LLM_PROVIDER
2025-06-25 23:57:05 -04:00
Huijae Lee ee3d499894
Merge branch 'TauricResearch:main' into save_results 2025-06-25 08:43:19 +09:00
Edward Sun 52284ce13c fixed anthropic support. Anthropic has different format of response when it has tool calls. Explicit handling added 2025-06-21 12:51:34 -07:00
Edward Sun da84ef43aa main works, cli bugs 2025-06-15 22:20:59 -07:00
ZeroAct 417b09712c refactor 2025-06-12 13:53:28 +09:00
ZeroAct 9647359246 save reports & logs under results_dir 2025-06-12 11:25:07 +09:00
maxer137 99789f9cd1 Add support for other backends, such as OpenRouter and olama
This aims to offer alternative OpenAI capable api's.
This offers people to experiment with running the application locally
2025-06-11 14:19:25 +02:00
Yijia-Xiao cc97cb6d5d chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00