Thanks to Modelflare for sponsoring this project! Operated by US-based Havenbyte LLC, it offers full-strength, stable GPT, Claude, Gemini, Grok and 40+ image/video models at lower cost. Selected OpenAI groups offer 65% / 75% / 85% daily cache-hit guarantees; a single US$20 top-up unlocks GPT at 0.015x, and US$50 unlocks Claude at 0.03x. Register via this exclusive link
100+ models from $5/month. Claude 81% off, GPT 91% off, DeepSeek 42% off, plus 20% off your first top-up. Register
## 🖥️ Product Preview
Click the GIF to view the full demo
## ✨ Key Features
| Capability | Coverage |
|------------|----------|
| AI decision reports | Core conclusion, score, trend, entry/exit levels, risk alerts, catalysts, and action checklist |
| Multi-market data | Covers A-shares, Hong Kong, US, Japanese, Korean, Taiwan stocks, and ETFs, with quotes, K-lines, technical indicators, news, announcements, fundamentals, and report context. Data-source coverage and market boundaries are documented in [market boundaries](./market-support_EN.md) |
| Web / desktop workspace | Manual analysis, task progress, history, full Markdown reports, backtest, portfolio, settings, and light/dark themes |
| Agent strategy chat | Multi-turn Q&A with 20 built-in strategies across Web/Bot/API |
| Smart import & autocomplete | Image, CSV/Excel, clipboard import; code/name/pinyin/alias autocomplete |
| Automation & notifications | GitHub Actions, Docker, local scheduler, FastAPI service, and WeChat Work / Feishu / Telegram / Discord / Slack / Email delivery |
> Detailed fields, fundamental P0 timeout semantics, trading rules, data-source priority, Web/API behavior, and troubleshooting live in the [Full Guide](./full-guide_EN.md).
### Tech Stack & Data Sources
| Type | Supported |
|------|-----------|
| AI Models | [Modelflare](https://modelflare.dev/sign-up?utm_source=github&utm_campaign=daily_stock_analysis), [x6.ai](https://console.x6pro.io/register?code=zJ2qSdns), Gemini, OpenAI-compatible providers, DeepSeek, Qwen, Claude, Ollama |
| Market Data | [TickPlus (Recommended)](http://www.tickplus.org/register?reg=5433cf922395), AkShare, Tushare, Pytdx, Baostock, YFinance, Longbridge |
| News Search | [SerpAPI](https://serpapi.com/github-daily-stock-analysis), Tavily, Bocha, Brave, MiniMax, SearXNG |
| Social Sentiment | Stock Sentiment API for Reddit / X / Polymarket, US stocks only |
> The project includes free market-data sources such as AkShare, Baostock, and YFinance and can run without extra data-source credentials. These free sources can be rate-limited, change upstream contracts, or fluctuate by network condition, so stability is not guaranteed. For scheduled runs, batch analysis, or steadier quotes, configure token-based sources such as Tushare or Longbridge; market coverage, Actions mappings, and fallback rules are documented in [Data Source Configuration](./full-guide_EN.md#data-source-configuration).
## 🚀 Quick Start
### Option 1: GitHub Actions (Recommended)
> Deploy in about 5 minutes, with no server and no infrastructure cost.
#### 1. Fork this repository
Click `Fork` in the upper-right corner. A star is very welcome if this project helps you.
#### 2. Configure Secrets
Open your forked repository, then go to `Settings` -> `Secrets and variables` -> `Actions` -> `New repository secret`.
**AI model configuration (configure at least one)**
Start with one provider and one API key. For multi-model routing, image recognition, local models, or advanced routing, see the [LLM Config Guide](./LLM_CONFIG_GUIDE_EN.md).
| Secret Name | Description | Required |
|-------------|-------------|:--------:|
| `MODELFLARE_KEY` | [Modelflare](https://modelflare.dev/sign-up?utm_source=github&utm_campaign=daily_stock_analysis) API key for leading global models at lower cost | **Recommended** |
| `LLM_X6AI_API_KEY` | [x6.ai](https://console.x6pro.io/register?code=zJ2qSdns) API key for affordable access to 100+ models, including Claude and GPT | **Recommended** |
| `GEMINI_API_KEY` | Google Gemini API key | Optional |
| `ANTHROPIC_API_KEY` | Anthropic Claude API key | Optional |
| `OPENAI_API_KEY` | OpenAI-compatible API key, including DeepSeek and Qwen-compatible services | Optional |
| `OPENAI_BASE_URL` / `OPENAI_MODEL` | Fill these when using an OpenAI-compatible provider | Optional |
> Ollama is better suited for local or Docker deployment. GitHub Actions is usually smoother with a cloud API.
**Notification channels (configure at least one)**
| Secret Name | Description |
|-------------|-------------|
| `WECHAT_WEBHOOK_URL` | WeChat Work bot |
| `FEISHU_WEBHOOK_URL` | Feishu bot |
| `TELEGRAM_BOT_TOKEN` + `TELEGRAM_CHAT_ID` | Telegram |
| `DISCORD_WEBHOOK_URL` | Discord webhook |
| `SLACK_BOT_TOKEN` + `SLACK_CHANNEL_ID` | Slack bot |
| `EMAIL_SENDER` + `EMAIL_PASSWORD` | Email push |
More channels, signatures, email groups, and Markdown-to-image settings are in [Notification Configuration](./full-guide_EN.md#notification-channel-configuration).
**Watchlist (required)**
| Secret Name | Description | Required |
|-------------|-------------|:--------:|
| `STOCK_LIST` | Watchlist codes, such as `600519,hk00700,AAPL,7203.T,005930.KS,2330.TW`; registered-index explicit codes (e.g. `sh000016`, `930606.CSI`) are supported via the one-shot `--stocks` argument or the GitHub Actions entry — see [Index watchlist configuration](./full-guide_EN.md#index-watchlist-configuration) | ✅ |
**News sources (recommended)**
News search strongly improves sentiment, announcements, events, and catalyst quality. Configure at least one search provider if possible.
| Secret Name | Description | Required |
|-------------|-------------|:--------:|
| `SERPAPI_API_KEYS` | [SerpAPI](https://serpapi.com/github-daily-stock-analysis), search-engine results for realtime financial news | **Recommended** |
| `TAVILY_API_KEYS` | Tavily, general news search API | Optional |
| `BOCHA_API_KEYS` | Bocha, Chinese search with AI summaries | Optional |
| `BRAVE_API_KEYS` | Brave Search, privacy-first search and US-stock news enrichment | Optional |
| `MINIMAX_API_KEYS` | MiniMax, structured search results | Optional |
| `SEARXNG_BASE_URLS` | Self-hosted SearXNG instances for quota-free fallback | Optional |
More search providers, social sentiment, and fallback behavior are in [Search Configuration](./full-guide_EN.md#search-service-configuration).
**Market data sources (optional)**
> Free sources like AkShare, Baostock, and YFinance are used by default. "Not configured" messages in the logs are informational and do not affect execution.
> For more stable data, configure the following secrets per market:
| Secret Name | Market | Description |
|-------------|:------:|-------------|
| `TICKPLUS_API_KEY` | A-shares / ETFs | [TickPlus (Recommended)](http://www.tickplus.org/register?reg=5433cf922395): daily bars, realtime indicators and names |
| `TUSHARE_TOKEN` | A-shares | Improves historical data stability |
| `LONGBRIDGE_OAUTH_CLIENT_ID` + `LONGBRIDGE_OAUTH_TOKEN_CACHE_B64` | HK/US stocks | Fills in volume ratio, turnover rate, P/E, and other fields |
> See [Data Source Configuration](./full-guide_EN.md#data-source-configuration).
#### 3. Enable Actions
Open the `Actions` tab and click `I understand my workflows, go ahead and enable them`.
#### 4. Manual Test
`Actions` -> `每日股票分析` (`.github/workflows/00-daily-analysis.yml`) -> `Run workflow` -> `Run workflow`.
#### Done
By default, the workflow runs every weekday at 18:00 Beijing time and skips non-trading days. Forced runs, trading-day checks, and resume rules are covered in the [Full Guide](./full-guide_EN.md#scheduled-task-configuration).
### Option 2: Local / Docker Deployment
For a Windows source install, use a short project path such as `C:\dsa`. See [installation troubleshooting](./FAQ_EN.md#windows-dependency-installation-fails-on-long-paths) if pip reports a path-length error.
```bash
# Clone the project
git clone https://github.com/ZhuLinsen/daily_stock_analysis.git && cd daily_stock_analysis
# Install dependencies
pip install -r requirements.txt
# Configure environment variables
cp .env.example .env && vim .env
# Run analysis
python main.py
```
Common commands:
```bash
python main.py --debug --no-notify # verbose debug logs (runs full analysis and market review; suppresses notifications only)
python main.py --dry-run --no-market-review --no-notify # stock-pipeline dry-run without market review or push
python main.py --stocks 600519,hk00700,AAPL,2330.TW --no-market-review # specific tickers only (skip default market review)
python main.py --market-review
python main.py --schedule
python main.py --serve-only
```
> Docker deployment, scheduling, and cloud-server WebUI access are documented in the [Full Guide](./full-guide_EN.md).
### Install as an agent plugin
This repo ships an agent-agnostic marketplace at [`.agents/plugins/marketplace.json`](../.agents/plugins/marketplace.json). The plugin lives in [`plugin/`](../plugin/). The `stock_analyzer` skill **drives an already deployed and configured DSA checkout** (or a running DSA service); it does not ship the `src/` runtime. Marketplace installs typically cache only `plugin/`. The skill body is at `plugin/skills/stock_analyzer/SKILL.md`; repo-root `SKILL.md` is a plain-file copy for OpenClaw/docs and `core.symlinks=false` checkouts. Repo-maintenance skills (`analyze-issue`, etc.) are not shipped in the plugin.
**Codex:**
```bash
codex plugin marketplace add ZhuLinsen/daily_stock_analysis
codex plugin add daily-stock-analysis@daily-stock-analysis
```
**Claude Code:**
```bash
/plugin marketplace add ZhuLinsen/daily_stock_analysis
/plugin install daily-stock-analysis@daily-stock-analysis
```
Local checkout: `codex plugin marketplace add /path/to/daily_stock_analysis`. Before using the skill, deploy and configure DSA per the [Full Guide](./full-guide_EN.md), or point the agent at an existing checkout via `DSA_REPO_ROOT` / asking the user (examples `chdir` into that root so relative `DATABASE_PATH` / market-review locks match the Web process). In-chat market review with `send_notification=False` requires a checkout that supports that parameter; older checkouts such as v3.35.0 should be updated first to avoid `TypeError` or accidental pushes. For HTTP, see [OpenClaw integration](./openclaw-skill-integration.md) / [Grok Bot integration](./grok-bot-integration.md): in-chat stock analysis must send `"notify": false`, and market review must send `"send_notification": false`. The optional read-only MCP server (`python -m src.mcp_server`, dependency `mcp>=1.0.0,<2`) is likewise configured manually from a full checkout per the [Full Guide](./full-guide_EN.md#read-only-mcp-stdio-server-optional); it is not bundled in the plugin package.
## 📱 Sample Output
### Decision Dashboard
```markdown
🎯 2026-02-08 Decision Dashboard
Analyzed 3 stocks | 🟢 Buy:0 🟡 Watch:2 🔴 Sell:1
📊 Summary
🟡 000657: Watch | Score 65 | Bullish
🟡 600105: Watch | Score 48 | Range-bound
🔴 300260: Sell | Score 35 | Bearish
🚨 Risk Alerts:
Risk 1: Main-force funds showed notable outflow.
Risk 2: Chip concentration suggests short-term resistance.
✨ Positive Catalysts:
Catalyst 1: AI-server supply-chain exposure remains a market focus.
Catalyst 2: Recent earnings growth provides fundamental support.
```
### Market Review
```markdown
🎯 2026-01-10 Market Review
📊 Major Indices
- SSE Composite: 3250.12 (🟢+0.85%)
- SZSE Component: 10521.36 (🟢+1.02%)
- ChiNext: 2156.78 (🟢+1.35%)
📈 Market Breadth
Up: 3920 | Down: 1349 | Limit up: 155 | Limit down: 3
🔥 Sector Performance
Leading: Internet Services, Media & Entertainment, Minor Metals
Lagging: Insurance, Airlines & Airports, Solar Equipment
```
## ⚙️ Configuration
Full environment variables, model routing, notification channels, data-source priority, trading rules, fundamental P0 semantics, and deployment details are in the [Full Guide](./full-guide_EN.md).
## 🖥️ Web UI
The Web workspace supports settings, task monitoring, manual analysis, history reports, full Markdown reports, Agent strategy chat, backtest, portfolio management, smart import, and light/dark themes.
```bash
python main.py --webui
python main.py --webui-only
```
Visit `http://127.0.0.1:8000`. Authentication, smart import, autocomplete, report copying, and cloud-server access are documented in [Local WebUI Management](./full-guide_EN.md#local-webui-management-interface).
## 🤖 Agent Strategy Chat
After configuring any available AI API key, the Web `/chat` page can use strategy chat. Set `AGENT_MODE=false` only if you want to disable it explicitly.
- Built-in strategies include moving-average crossovers, Chan theory, Elliott wave, bull trend, hot themes, event-driven, growth quality, expectation repricing, and more
- Calls realtime quotes, K-line data, technical indicators, news, and risk context
- Supports follow-up questions, session export, notification sending, and background execution
- Supports custom strategy files and experimental multi-agent orchestration
> Agent parameters, `skill` naming compatibility, multi-agent mode, and budget guards are covered in the [Full Guide](./full-guide_EN.md#local-webui-management-interface) and [LLM Config Guide](./LLM_CONFIG_GUIDE_EN.md).
## 📞 Contact
Email
zhuls345@gmail.com
Project consulting, deployment support, and feature extensions