A zero-dependency stock market briefing generator. No tushare needed, no API Key needed, runs in any environment.
How to Use
python3 scripts/stock_briefing.py
Send the script output to Uncle Crab as-is, do not modify, do not add, do not summarize.
Report Contents
- 📈 Market close overview (three major indices + Shanghai and Shenzhen turnover)
- 📊 Last 5 days volume trend bar chart (automatically marks volume increase/decrease)
- 📋 Watchlist quotes (A-shares + Hong Kong stocks, automatically marks largest gainers and losers)
- 💰 Capital flows (market main force + northbound capital + watchlist main force capital)
- 📰 Today's headlines (Cailianshe morning picks, Sina 7x24 as backup)
- 💡 Summary (volume analysis + capital-side analysis + trend judgment, fully rule-based)
Data Sources
- A-share market indices + turnover: East Money push2his API
- A-share individual stock quotes: Tencent daily K-line web.ifzq.gtimg.cn
- Hong Kong stock quotes: Tencent daily K-line + real-time interface (name)
- Capital flows (market + individual stock main force): East Money fflow API
- Northbound capital (Shanghai/Shenzhen Stock Connect): East Money kamt API
- Financial news: Cailianshe Telegraph API (preferred) + Sina 7x24 Finance (backup)
Zero Dependencies
- No need to pip install any packages
- No API Key or Token required
- Only uses the Python standard library (urllib, json, re, datetime)
Modifying the Watchlist
Edit the scripts/stock_briefing.py at the top of A_STOCKS and HK_STOCKS lists.