AI Agent Hub
Back to skills
A-Share Sector Fund Flow Scanner icon

A-Share Sector Fund Flow Scanner

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_401a054b/sector-scanner.

About this skill

Problem It Addresses

A-share thematic sectors are numerous and individual stocks are scattered, making it hard to identify which sectors show real fund consensus versus one-day spikes. Manually reviewing indices, sector gains, and stock movement often misses volume, moving-average structure, and MACD context. This skill turns sector heat and fund flow into comparable, reviewable labels.

How It Works

It pulls real-time or previous-close data through pytdx and the TDX market protocol, then scans all or selected sectors and scores each stock. The main dimensions are moving-average trend (MA5/10/20/60 bullish alignment), MACD momentum (golden/death cross), volume analysis (relative volume expansion/contraction), and price position (20-day high/low range). Individual scores are aggregated into sector averages, rising-stock counts, average changes, and flow_label. The output can be exported as scan_result.csv and scan_result.detail.csv, or presented as a TOP 10 table, inflow/outflow lists, and selected stocks.

Boundaries And Notes

Use this for post-market review, thematic screening, and structured market summaries, not investment advice. TDX connection failures trigger failover; missing stock data is skipped and recorded in errors. Outside trading hours, it uses previous-close data. Sector and stock lists can be maintained in config/sectors.json, while timeout and retry settings live in config/settings.json.

Use Cases

  • After close, screen thematic sectors with main-force inflows and verify rising-stock counts.
  • Export scored stocks from selected sectors to CSV for review archives.
  • Compare sector average scores, average changes, and inflow/outflow labels during review.
  • Scan customized thematic sectors after editing config and inspect individual stock details.

Best For

  • A-share thematic review researcher who needs to compare sector fund flow and stock scores quickly
  • Quant analyst maintaining a watchlist who needs to export scan results to CSV for further analysis
  • Research assistant tracking tech or pharma themes who needs to review rising-stock rates and inflow lists
  • Financial data operations owner who needs to generate sector rankings and stock detail files for archives