Daily Stock Analysis — LLM-Powered Multi-Market Stock Intelligence at 55K Stars
daily_stock_analysis is an LLM-driven multi-market stock intelligence system by ZhuLinsen. With 55K+ GitHub stars, it provides real-time market data, news analysis, decision dashboards, and automated alerts across US, China, Hong Kong, and global markets — all running at zero cost.
- ⭐ 55330
- 업데이트 2026-07-07

TL;DR: Daily Stock Analysis is an LLM-powered multi-market stock intelligence system with 55K+ GitHub stars. It provides real-time market data, news analysis, decision dashboards, and automated alerts across US, China, Hong Kong, and global markets — all running at zero cost with scheduled automation.
#
Daily Stock Analysis (daily_stock_analysis) by ZhuLinsen is a comprehensive stock market intelligence platform that leverages Large Language Models to analyze financial data, news, and market trends across multiple global exchanges.
The system combines real-time data feeds with AI-powered analysis to provide traders and investors with actionable insights — all automated and running at zero infrastructure cost.
#
- Multi-Market Support: US, China (A-shares), Hong Kong, and more
- Real-Time Data: Live market prices, volume, and indicators
- News Analysis: AI-powered sentiment analysis of financial news
- Decision Dashboards: Interactive visualizations for trading decisions
- Automated Alerts: Push notifications for significant market events
- Zero Cost Operation: Runs on free tier services
#
#
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Data Sources │───▶│ LLM Engine │───▶│ Dashboard │
│ (APIs) │ │ (Analysis) │ │ (Display) │
└─────────────┘ └──────────────┘ └─────────────┘
│
┌───────▼────────┐
│ Alert System │
│ (Notifications)│
└────────────────┘
#
The system integrates with multiple data providers:
| Source | Markets | Data Type | Cost |
|---|---|---|---|
| Yahoo Finance | Global | Prices, fundamentals | Free |
| AKShare | China/HK | A-shares, HK stocks | Free |
| Tushare | China | A-shares detailed | Free tier |
| News APIs | Global | Financial news | Free tier |
| Crypto APIs | Crypto | Digital assets | Free |
#
from daily_stock_analysis import MarketAnalyzer
analyzer = MarketAnalyzer(
llm_provider="openai",
model="gpt-4o",
markets=["US", "CN", "HK"],
analysis_depth="comprehensive"
)
# Analyze a stock
result = analyzer.analyze(
ticker="AAPL",
timeframe="1D",
include_news=True,
include_technicals=True
)
print(f"Sentiment: {result.sentiment}")
print(f"Recommendation: {result.recommendation}")
print(f"Key factors: {result.factors}")
#
#
# Clone the repository
git clone https://github.com/ZhuLinsen/daily_stock_analysis.git
cd daily_stock_analysis
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your API keys
#
# .env configuration
OPENAI_API_KEY=sk-your-key
AKSHARE_TOKEN= # Optional for extended data
TUSHARE_TOKEN= # Optional for A-share data
TELEGRAM_BOT_TOKEN= # For alerts
#
from daily_stock_analysis import StockDashboard
# Initialize dashboard
dashboard = StockDashboard(market="US")
# Add stocks to watch
dashboard.watch(["AAPL", "MSFT", "GOOGL", "AMZN"])
# Run analysis
dashboard.analyze()
# View results
dashboard.show()
#
#
# US market analysis
us_analyzer = MarketAnalyzer(market="US")
# Key features
us_analyzer.add_indicator("RSI")
us_analyzer.add_indicator("MACD")
us_analyzer.add_indicator("Bollinger Bands")
us_analyzer.add_indicator("Volume Profile")
# Real-time data
quotes = us_analyzer.get_quotes(tickers=["SPY", "QQQ", "DIA"])
#
# China A-share analysis
cn_analyzer = MarketAnalyzer(market="CN")
# A-share specific indicators
cn_analyzer.add_indicator("Dragon Tiger List")
cn_analyzer.add_indicator("Northbound Flow")
cn_analyzer.add_indicator("Margin Trading")
cn_analyzer.add_indicator("Block Trades")
# Sector analysis
sectors = cn_analyzer.sector_analysis(date="2026-07-07")
#
# HK market analysis
hk_analyzer = MarketAnalyzer(market="HK")
# HK-specific features
hk_analyzer.add_indicator("Connect Program")
hk_analyzer.add_indicator("Short Selling")
hk_analyzer.add_indicator("Turnover Analysis")
#
#
from daily_stock_analysis import SentimentEngine
engine = SentimentEngine(
sources=["news", "social", "analyst_reports"],
languages=["en", "zh", "hk"],
llm_model="claude-3-5-sonnet"
)
# Analyze sentiment for a stock
sentiment = engine.analyze("NVDA")
print(f"Overall: {sentiment.overall}")
print(f"News: {sentiment.news}")
print(f"Social: {sentiment.social}")
print(f"Analysts: {sentiment.analysts}")
#
from daily_stock_analysis import NewsAnalyzer
analyzer = NewsAnalyzer(
sources=["Reuters", "Bloomberg", "CNBC", "Eastmoney"],
keywords=["AI", "semiconductor", "earnings"],
language="en"
)
# Get relevant news
news = analyzer.get_recent(hours=24)
for item in news:
print(f"[{item.sentiment}] {item.headline}")
#
from daily_stock_analysis import TechnicalAnalyzer
ta = TechnicalAnalyzer(
timeframe="1D",
indicators=["MA", "EMA", "RSI", "MACD", "KDJ", "WR"]
)
# Generate signals
signals = ta.generate_signals(ticker="AAPL")
for signal in signals:
print(f"{signal.type}: {signal.action} @ {signal.price}")
#
#
from daily_stock_analysis import Dashboard
dash = Dashboard(
layout="professional",
theme="dark",
refresh_interval=60 # seconds
)
# Add widgets
dash.add_widget("price_chart", ticker="SPY")
dash.add_widget("sentiment_gauge", ticker="AAPL")
dash.add_widget("news_feed", keywords=["AI", "tech"])
dash.add_widget("sector_heatmap", market="US")
dash.add_widget("alert_panel")
# Launch dashboard
dash.launch(port=8080)
#
# Generate daily report
python -m daily_stock_analysis.report \
--date 2026-07-07 \
--market US,CN,HK \
--output daily_report.pdf
# Generate weekly summary
python -m daily_stock_analysis.report \
--week 2026-W27 \
--format markdown \
--output weekly.md
#
#
from daily_stock_analysis import AlertManager
alerts = AlertManager(
channels=["telegram", "email", "webhook"],
retry_count=3,
quiet_hours={"start": "22:00", "end": "08:00"}
)
# Price alerts
alerts.add(
type="price",
ticker="BTC",
condition="above",
threshold=100000,
message="Bitcoin crossed $100K!",
channels=["telegram", "email"]
)
# Sentiment alerts
alerts.add(
type="sentiment_shift",
ticker="TSLA",
threshold=0.3,
message="Major sentiment shift detected for TSLA"
)
#
# Run daily at 9 AM
0 9 * * * python -m daily_stock_analysis.daily_report >> /var/log/stock_analysis.log
# Run weekly on Monday
0 10 * * 1 python -m daily_stock_analysis.weekly_report >> /var/log/weekly.log
#
#
| Service | Free Tier | Usage |
|---|---|---|
| OpenRouter | 50 free requests/day | LLM inference |
| Vercel | 100GB bandwidth/month | Dashboard hosting |
| Cloudflare | Unlimited requests | CDN + DNS |
| GitHub Actions | 2,000 min/month | Scheduled analysis |
| SQLite | Unlimited | Local data storage |
#
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
# Run daily analysis
CMD ["python", "-m", "daily_stock_analysis.scheduler"]
#
#
| Task | Time | Resources |
|---|---|---|
| Single stock analysis | 2-5 seconds | ~50MB RAM |
| Full market scan | 30-60 seconds | ~200MB RAM |
| News processing (100 articles) | 10-20 seconds | ~100MB RAM |
| Dashboard generation | 1-3 seconds | ~30MB RAM |
#
Monthly Cost Breakdown:
- LLM API calls (free tier): $0
- Hosting (Vercel free): $0
- Data APIs (free tier): $0
- Total: $0/month
#
#
| Metric | Value |
|---|---|
| Stars | 55,330+ |
| Forks | 4,200+ |
| Contributors | 85+ |
| Issues Resolved | 1,200+ |
| Last Updated | 2026-07-07 |
#
# Fork and clone
git clone https://github.com/YOUR_USERNAME/daily_stock_analysis.git
# Create feature branch
git checkout -b feature/new-indicator
# Run tests
pytest tests/ -v
# Submit pull request
git push origin feature/new-indicator
#
#
from daily_stock_analysis import RiskManager
risk = RiskManager(
max_position_pct=0.1, # Max 10% per position
max_correlation=0.7, # Limit correlated positions
stop_loss_pct=0.05, # 5% stop loss
take_profit_pct=0.15, # 15% take profit
)
# Check portfolio risk
portfolio_risk = risk.evaluate(portfolio=my_portfolio)
print(f"Risk score: {portfolio_risk.score}/10")
print(f"Recommendations: {portfolio_risk.suggestions}")
#
# Validate data before analysis
from daily_stock_analysis import DataValidator
validator = DataValidator(
required_fields=["price", "volume", "date"],
max_missing_pct=5,
outlier_detection="iqr"
)
is_valid, issues = validator.validate(stock_data)
if not is_valid:
print(f"Data issues: {issues}")
#
| Feature | Daily Stock Analysis | Bloomberg Terminal | TradingView |
|---|---|---|---|
| Cost | Free | $24,000/year | $15-60/month |
| Multi-market | ✅ US/CN/HK | ✅ Global | ✅ Global |
| AI Analysis | ✅ LLM-powered | ⚠️ Limited | ❌ |
| Automation | ✅ Scheduled | ⚠️ Partial | ⚠️ Alerts |
| Open Source | ✅ | ❌ | ❌ |
| Custom Indicators | ✅ | ⚠️ | ✅ Pine Script |
#
Daily Stock Analysis democratizes institutional-grade market intelligence. By combining free data sources with powerful LLM analysis, it provides comprehensive multi-market coverage at zero cost. The 55K+ stars reflect strong demand for accessible, AI-powered financial analysis tools.
Whether you’re a retail investor, a quantitative analyst, or a developer building financial applications, Daily Stock Analysis provides the tools and insights you need.
#
Stay updated on the latest AI tools and open-source projects. Join our Telegram Group for daily AI tool recommendations, community discussions, and exclusive content.
#
| Tool | Category | Stars |
|---|---|---|
| QuantConnect | Quant Platform | 10K⭐ |
| AkShare | Data API | 25K⭐ |
| Backtrader | Backtesting | 12K⭐ |
#
- Daily Stock Analysis GitHub Repository — Official source code and documentation
- AKShare Documentation — Chinese financial data API
- Yahoo Finance API — Global market data
- OpenRouter — Multi-model LLM API
Disclosure: This article contains no affiliate links. Dibi8 maintains editorial independence from all projects we cover.
#
#
A: Yes, the system is designed to be accessible to users of all skill levels. The dashboard provides intuitive visualizations, and the AI analysis explains recommendations in plain language. Beginners can start with pre-configured templates.
#
A: The system provides analysis and suggestions but should not be used as the sole basis for trading decisions. Always combine AI insights with your own research and risk management. Past performance does not guarantee future results.
#
A: The sentiment analysis achieves approximately 70-75% accuracy compared to professional analyst ratings. It performs best on well-covered stocks with abundant news coverage. For less-covered stocks, accuracy decreases due to limited data.
#
A: Yes, Daily Stock Analysis supports major cryptocurrencies including Bitcoin, Ethereum, and other top tokens by volume. Crypto data is sourced from CoinGecko and Binance APIs with the same analysis pipeline as traditional markets.
#
A: With default settings, the system stores approximately 500MB of historical data per market. This includes price history, news articles, and analysis results. Data can be purged or archived to reduce storage requirements.
#
#
from daily_stock_analysis import CustomIndicator
class MomentumIndicator(CustomIndicator):
name = "momentum"
parameters = {"lookback": 14}
def calculate(self, data):
return (data['close'] - data['close'].shift(self.lookback)) / data['close'].shift(self.lookback) * 100
# Register and use
indicator = MomentumIndicator()
indicator.register()
signals = indicator.generate_signals(ticker="AAPL", lookback=20)
#
from daily_stock_analysis import Backtester
bt = Backtester(
start="2020-01-01",
end="2026-01-01",
initial_capital=100000,
commission=0.001,
)
# Run strategy
results = bt.run(
strategy="llm_sentiment",
universe="sp500",
rebalance="monthly"
)
print(f"Total return: {results.total_return:.1%}")
print(f"Sharpe ratio: {results.sharpe:.2f}")
print(f"Max drawdown: {results.max_drawdown:.1%}")
#
The project maintains an active research program exploring new analysis techniques including transformer-based sentiment models, graph neural networks for sector correlation analysis, and reinforcement learning for portfolio optimization. Community contributions in these areas form a core part of the project’s innovation pipeline.
#
Daily Stock Analysis has been adopted by retail investors, hedge funds, and financial advisors worldwide. The zero-cost deployment model makes institutional-quality analysis accessible to individual investors who previously could only afford expensive Bloomberg terminals. Many users report that the AI-powered sentiment analysis helps them identify market opportunities before they appear in traditional technical indicators.
#
All data processing occurs locally on your machine. No financial data is sent to external servers unless you explicitly configure cloud-based LLM providers. The project supports air-gapped deployments for organizations with strict data residency requirements. Encrypted storage options are available for sensitive portfolio information.
#
The system includes built-in compliance features for regulated environments. All analysis decisions are logged with timestamps and data sources. Report generation supports SEC and FINRA formatting requirements. The audit trail feature maintains a complete record of all data accessed and analyses performed, ensuring regulatory transparency and accountability for institutional users.
#
Regular updates ensure compatibility with the latest market data APIs and LLM providers, keeping the analysis accurate and up-to-date with current market conditions.
Join the community Discord for tips and updates on new features.
#
The platform receives regular updates ensuring compatibility with the latest market data APIs and LLM providers. This keeps the analysis accurate and up-to-date with current market conditions and technological advancements in artificial intelligence.
The open-source community contributes new market indicators, data source integrations, and visualization templates regularly. Monthly releases include performance improvements and new analysis capabilities based on user feedback.
The system supports both real-time and batch processing modes. Real-time mode provides instant analysis for live trading decisions while batch mode processes historical data for backtesting and strategy optimization. The project welcomes contributions from developers worldwide.
💬 댓글 토론