daily_stock_analysis
by ZhuLinsen
Stock analysis system that uses language models to combine market data and news into a daily dashboard.
- Stars
- 74,431 stars
- Forks
- 59k forks
- Last push
- today
- Activity
- Active
# Run locally$ git clone https://github.com/ZhuLinsen/daily_stock_analysis.git && cd daily_stock_analysis
pip install -r requirements.txt
cp .env.example .env
python main.pyCommands from the project's README. Run them after installing (see below).
Overview
Understand daily_stock_analysis in 60 seconds
- What it does
- Daily Stock Analysis is an AI system that analyses a watchlist of stocks every day and pushes a decision dashboard to WeChat Work, Feishu, Telegram, Discord, Slack or email. It covers China A-shares, Hong Kong, US, Japanese, Korean and Taiwanese stocks and ETFs.
- The problem it solves
- Tracking many stocks means reading prices, charts, news and filings every day. This project gathers that data, has a language model summarise each stock with a score, trend, levels and risks, and sends the report automatically. It can run free on GitHub Actions.
- Why choose it
- Choose it for a free, automated daily stock report you control. The project states it is for learning and research only, not investment advice.
- Who should use it
- Individual investors with a watchlist
- Developers who want automated daily market reports
- Chinese-speaking users (main README is Chinese; English docs exist)
- People who prefer self-hosted tools to paid services
- Setup difficulty
You'll need:
- Python 3.10+ (for local runs)
- At least one LLM API key (Gemini, Anthropic, OpenAI-compatible and others) or Ollama locally
- At least one notification channel
- A GitHub account for the Actions option
How daily_stock_analysis works
Each run produces an AI decision report per stock: a core conclusion, score, trend, buy and sell levels, risk alerts, catalysts and a checklist. Data comes from free sources like AkShare, Baostock and YFinance by default, with optional paid sources for stability, and news from search APIs such as SerpAPI, Tavily or Brave.
The recommended setup is GitHub Actions: fork the repo, add secrets for your model key, notification channel and STOCK_LIST, then enable Actions. By default it runs on weekdays at 18:00 Beijing time and skips non-trading days. You can also run it locally, in Docker, or as a FastAPI service.
A local web UI at 127.0.0.1:8000 offers manual analysis, history, backtesting, holdings and settings, and an agent mode answers follow-up questions using 15 built-in strategies. Free data sources can be rate-limited or change without notice.
Features
Key features
AI decision reports
Score, trend, levels, risks and catalysts per stock.
Six markets
A-shares, Hong Kong, US, Japan, Korea, Taiwan and ETFs.
Push notifications
WeChat Work, Feishu, Telegram, Discord, Slack and email.
Runs on GitHub Actions
Free scheduled runs with no server.
Web UI
History, backtesting and holdings at localhost:8000.
Agent Q&A
Follow-up questions with 15 built-in strategies.
Strengths
- Free to run on GitHub Actions
- Works with many LLM providers
- Many notification channels
- MIT licensed
Limitations
- Not investment advice; for learning and research only
- Free data sources can be unstable or rate-limited
- LLM and some data or news APIs cost money
- Main README is in Chinese
Practical use cases
Daily watchlist report
Get a dashboard of your stocks in Telegram every evening.
Research assistant
Ask follow-up questions about a stock in the web UI.
Backtesting ideas
Review past reports and backtests.
Installation
Install daily_stock_analysis
Commands come from Daily Stock Analysis's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Python 3.10+, or a GitHub account
Supported systems
- Windows
- macOS
- Linux
- 1
Fork the repository
- 2
Add secrets
Settings, then Secrets and variables, then Actions. Add an LLM key (for example GEMINI_API_KEY), a notification secret (for example TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID) and STOCK_LIST, such as 600519,hk00700,AAPL.
- 3
Enable Actions and test
Open the Actions tab, enable workflows, then run the daily stock analysis workflow manually.
- 1
Clone and install
On Windows use a short path such as C:\dsa.
Shellgit clone https://github.com/ZhuLinsen/daily_stock_analysis.git && cd daily_stock_analysispip install -r requirements.txt - 2
Configure
Shellcp .env.example .env - 3
Run
Shellpython main.py
Configuration and API keys
| Setting | What it's for |
|---|---|
STOCK_LISTRequired | Your watchlist, for example 600519,hk00700,AAPL,7203.T. |
GEMINI_API_KEYOptional | One of several supported LLM keys; at least one is needed. |
TELEGRAM_BOT_TOKENOptional | With TELEGRAM_CHAT_ID, sends reports to Telegram; at least one channel is needed. |
SERPAPI_API_KEYSOptional | Recommended news search source. |
First run
- 1
Start the web UI
Then open http://127.0.0.1:8000.
Shellpython main.py --webui
daily_stock_analysis's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Get a daily stock report on Telegram with GitHub Actions
Set up free automated analysis of your watchlist.
Before you start
- A GitHub account
- An LLM API key
- A Telegram bot token and chat ID
- 1
Fork the repository
- 2
Add the secrets
GEMINI_API_KEY (or another model key), TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID and STOCK_LIST.
- 3
Enable Actions
Actions tab, then enable workflows.
- 4
Run it once manually
Choose the daily stock analysis workflow and click Run workflow.
What to expect
A decision dashboard for each stock arrives in Telegram, and the workflow then runs on weekdays at 18:00 Beijing time.
Next steps
- Add a news search key for better catalysts
- Try the local web UI
- Read docs/full-guide.md for all options
Costs and requirements
What it costs to run
- License
- MIT.Free
- Software and GitHub Actions
- The README describes the GitHub Actions setup as zero cost with no server needed.Free
- LLM API
- Billed by your model provider.Paid
- Data and news APIs
- Free defaults; some recommended sources are paid.Depends
Troubleshooting
Common setup issues
Windows install fails with long-path errors
Clone into a short path such as C:\dsa; see docs/FAQ.md.
Logs say a data source is not configured
That's fine; free sources are used by default.
Workflow didn't run on a holiday
Non-trading days are skipped by default.
Alternatives
Similar AI repositories
hermes-agent
NousResearch
Personal AI agent from Nous Research that learns and improves the more you use it.
AutoGPT
Significant-Gravitas
Platform for building, deploying and running autonomous AI agents.
langflow
langflow-ai
Visual builder for creating and deploying AI agents and workflows by connecting blocks instead of writing code.
langchain
langchain-ai
Framework for building LLM-powered applications and agents.