ZhuLinsen/daily_stock_analysis
A Python Agent workbench for multi-market watchlist research and scheduled reports
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Daily Stock Analysis is a Python application that assembles watchlist research from market data and news, uses an LLM to synthesize reports, and presents or delivers results through Web, Bot, and notification channels. The root tree separates data_provider/, src/, api/, bot/, and strategies/. main.py is the documented CLI entry point. The dependency set includes python-dotenv for configuration, Tenacity for retry and backoff, SQLAlchemy for database access, schedule for periodic jobs, and exchange-calendars for trading calendars.
The market-data layer defines an ordered fallback rather than relying on one feed: the manifest puts efinance ahead of AkShare, and v3.35.0 isolates Tushare permission failures by endpoint so affected calls can fall back. FastAPI is the HTTP integration path. The stock_analyzer Agent plugin drives a configured checkout or running service rather than shipping the Python runtime. MCP is a separate, optional read-only stdio surface launched with python -m src.mcp_server.
Key Capabilities & Differentiators
Watchlists cover mainland China, Hong Kong, the US, Japan, South Korea, and Taiwan, plus ETFs. The inputs include quotes, candlesticks, technical indicators, news, disclosures, and fundamentals, but coverage varies by market. The generated dashboard combines a score and trend assessment with price levels, risk flags, catalysts, and a checklist. The Web and desktop workbenches support on-demand analysis, task progress, Markdown report history, backtesting, holdings, and watchlist imports from images, CSV/Excel files, or the clipboard.
The research Agent exposes 20 built-in strategies across Web, Bot, and API, supports multi-turn follow-up, and can call quote, technical, news, and risk tools. Custom strategy files are supported; multi-agent orchestration is experimental. Model choices include Gemini, Claude, OpenAI-compatible endpoints, and local Ollama. The ETF dual-momentum workflow introduced in v3.33.0 is separate from LLM analysis: it produces rotation signals, cost-adjusted backtests, annual comparisons, parameter sensitivity checks, and data-quality warnings without a model.
Trade-offs & Limitations
Compared with a single-feed watchlist script, DSA adds cross-market context, provider fallback, follow-up research, and report delivery at the cost of more configuration and dependencies. Free quote sources can be rate-limited or disrupted by upstream API changes. Token-backed feeds can improve stability where supported, but a successful fallback does not establish that two providers offer equivalent freshness or price conventions. The v3.35.0 fixes for quote trade dates and Yahoo ex-dividend prices are concrete reasons to validate the source and date before acting on a report.
Compared with a dedicated backtesting or execution platform, its best-documented workflows are research, monitoring, and delivery. LLM-generated levels and recommendations are inputs to review, not validated signals or evidence of an execution path. Local Ollama keeps inference local, while hosted models avoid running inference infrastructure but add an external service and potentially usage fees. Neither a no-server schedule nor free quote feeds guarantee zero operating cost. The MIT license applies to the code, not to rights in upstream market data or news.
Hardware & Deployment Guide
For a local install, install requirements.txt, copy .env.example to .env, and configure the watchlist and a model channel for LLM analysis. python main.py runs analysis; --schedule enables local scheduling, and --webui-only starts the Web workbench at 127.0.0.1:8000. Docker is a self-hosted option. GitHub Actions can run reports without an always-on server: configure STOCK_LIST, a model channel, and a notification destination in Secrets. The default schedule is 18:00 Beijing time on weekdays, subject to trading-day checks.
Hosted inference does not require a local GPU for DSA itself. With Ollama, size memory and any VRAM for the chosen model and concurrency; market data and news still depend on network access. The manually configured MCP server needs a full checkout and the optional mcp>=1.0.0,<2 dependency. The release history shows why deployment version matters: v3.34.0 added optional FastAPI security middleware and a switch to skip duplicate startup analysis, while v3.35.0 expanded Taiwan market support and refined data fallback.
Investors or research teams that want scheduled cross-market watchlist briefings, source-aware review, and follow-up questions through Web, Bot, or API.
You require fully offline market data, guaranteed feed freshness, validated trading signals, or automated order execution.
Quick Start & Installation
# 克隆项目 git clone https://github.com/ZhuLinsen/daily_stock_analysis.git && cd daily_stock_analysis # 安装依赖 pip install -r requirements.txt # 配置环境变量 cp .env.example .env && vim .env # 运行分析 python main.py
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| daily_stock_analysis ★ | 75.9k | +870 | Python | MIT | A Python Agent workbench for multi-market watchlist research and scheduled repor |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/ZhuLinsen/daily_stock_analysis.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about daily_stock_analysis
Should I integrate through FastAPI, the Agent plugin, or MCP?
notify: false for stock analysis and send_notification: false for market reviews; check that your checkout supports the latter before calling it. Use the optional read-only MCP stdio server for read-only integration. The Agent plugin relies on an existing DSA checkout or service and does not bundle the runtime.Do I need a GPU, and how should I size a self-hosted instance?
Can a company self-host or redistribute it?
When is DSA a better fit than a quote script or a dedicated quant platform?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy