Python tool for stock analysis using LLMs
Top 96.9% on sourcepulse
This project provides an automated A-share stock analysis tool that leverages large language models for data-driven investment advice. It's designed for individual investors and researchers interested in technical analysis and AI-powered market insights. The tool generates comprehensive HTML reports with technical indicators, charts, and AI-generated recommendations.
How It Works
The tool fetches A-share historical data using the Ashare
library and calculates over 25 technical indicators (e.g., MACD, KDJ, RSI) via MyTT
. Matplotlib
is used for generating detailed charts. The core innovation lies in integrating the Deepseek LLM API to provide professional investment analysis and recommendations, transforming raw data into actionable insights and a readable HTML report.
Quick Start & Requirements
pip install pandas numpy matplotlib pytz
LLM_API_KEY
, LLM_BASE_URL
, LLM_MODEL
) or directly in code.python main.py
(after setting stock code in main.py
).public/index.html
.Highlighted Details
Maintenance & Community
This is a personal, privately used repository made public. No specific community channels, roadmap, or notable contributors are mentioned.
Licensing & Compatibility
Limitations & Caveats
The project is a personal tool with minimal security measures for API credentials; users must manage sensitive information carefully. It currently supports single stock analysis, with plans to add batch processing and backtesting. The tool is for learning and research only, not financial advice.
1 day ago
Inactive