SuperAPI AI Directory

stock-briefing

Data & analytics

View repository

Updated 10-16 02:36

About this skill

Stock Market Briefing

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

  1. 📈 Market close overview (three major indices + Shanghai and Shenzhen turnover)
  2. 📊 Last 5 days volume trend bar chart (automatically marks volume increase/decrease)
  3. 📋 Watchlist quotes (A-shares + Hong Kong stocks, automatically marks largest gainers and losers)
  4. 💰 Capital flows (market main force + northbound capital + watchlist main force capital)
  5. 📰 Today's headlines (Cailianshe morning picks, Sina 7x24 as backup)
  6. 💡 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.