Discover and explore top open-source AI tools and projects—updated daily.
SebastienZhSemi-automatic A-share stock selection
Top 29.7% on SourcePulse
Summary
AgentTrader is a semi-automatic stock selection project for the Chinese A-share market, targeting investors and researchers. It automates initial screening using quantitative rules and provides AI-driven chart analysis via Gemini for re-evaluation, aiming to streamline the stock selection process.
How It Works
The system follows a four-step pipeline: fetching daily K-line data via Tushare, applying quantitative rules (currently B1 strategy) for pre-selection, exporting candidate charts, and finally using Gemini for AI-powered chart review and scoring. This hybrid approach combines rule-based filtering with AI's visual pattern recognition.
Quick Start & Requirements
Installation requires cloning the repo, pip install -r requirements.txt, and setting TUSHARE_TOKEN and GEMINI_API_KEY environment variables. Run the full pipeline with python run_all.py, using flags like --skip-fetch. Chart export needs the kaleido library. Configuration is managed via YAML files in config/.
Highlighted Details
Maintenance & Community
The project is copyrighted by SebastienZh (2026). No community channels or contributor details are provided in the README.
Licensing & Compatibility
Released under CC BY-NC 4.0, permitting non-commercial use, research, and distribution with attribution. Commercial use, sale, or profit-oriented deployment is strictly prohibited.
Limitations & Caveats
Currently implements only the B1 quantitative strategy, with plans for expansion. Requires valid Tushare and Gemini API keys, plus the kaleido library. Gemini API rate limiting is possible and adjustable via request_delay. The non-commercial license restricts its use in commercial applications.
4 weeks ago
Inactive