Documents

财经日报

Try it

AI财经日报生成助手。自动获取A股/港股/美股实时行情,分析大盘指数、行业板块、资金流向、外汇商品、财经要闻,生成交互式HTML可视化日报。触发词:财经日报、今日财经、股市日报、每日财经、金融日报、finance daily report、股市行情、大盘分析、今日股市。

What it does

AI财经日报生成助手。自动获取A股/港股/美股实时行情,分析大盘指数、行业板块、资金流向、外汇商品、财经要闻,生成交互式HTML可视化日报。触发词:财经日报、今日财经、股市日报、每日财经、金融日报、finance daily report、股市行情、大盘分析、今日股市。

The skill document

财经日报 (Finance Daily Report)

Overview

Generate a professional, interactive HTML financial daily report covering A-shares, Hong Kong stocks, and major global indices. The report follows Chinese stock market conventions (red for up, green for down) and uses AKShare for free real-time data.

When to Use

Trigger this skill when the user asks for:

  • 财经日报 / 今日财经 / 股市日报
  • A daily financial market report
  • Stock market overview or analysis
  • 大盘分析 / 今日股市 / 金融日报
  • Any request involving generating a daily financial summary

Workflow

Step 1: Prepare Environment

Before running the script, ensure dependencies are installed:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple akshare pandas --trusted-host pypi.tuna.tsinghua.edu.cn

Use the managed Python runtime at C:/Users/PC/.workbuddy/binaries/python/versions/3.13.12/python.exe and create/use a venv if needed.

Step 2: Run the Report Generator

Execute the main script to generate the report:

python scripts/generate_report.py [--output ] [--date YYYY-MM-DD]

Options:

  • --output: Output HTML file path (default: current working directory finance_daily_report_YYYY-MM-DD.html)
  • --date: Target date in YYYY-MM-DD format (default: today). Note: only historical dates work for complete data; today may have incomplete real-time data.

Step 3: Present the Report

After generation, present the HTML file to the user using present_files. The report is a self-contained interactive HTML file that opens directly in the browser.

Report Modules

The generated report includes 6 modules:

  1. 大盘指数概览 — A-share main indices (SSE, SZSE, ChiNext, STAR 50), Hang Seng, Hang Seng Tech, with real-time price, change %, and change amount.
  2. 行业板块热力 — Top 5 gaining and top 5 declining industry sectors with representative stocks.
  3. 资金流向 — North-bound capital flow, total market turnover, main capital flow direction.
  4. 外汇与商品 — USD/CNY exchange rate, gold price, crude oil price.
  5. 财经要闻 — Key financial news headlines for the day.
  6. 明日关注 — Financial calendar events and upcoming economic data releases.

Visual Conventions

  • Red (红色 #e74c3c): Price increase (涨) — Chinese market convention
  • Green (绿色 #27ae60): Price decrease (跌) — Chinese market convention
  • Interactive charts powered by Chart.js (loaded from CDN)
  • Responsive design, mobile-friendly

Data Sources

The script uses the following AKShare data sources (v1.18+ optimized for China network):

ModuleAPISource
A-share indicesak.stock_zh_index_spot_sina()Sina (reliable in China)
HK indicesak.stock_hk_index_spot_sina()Sina
Industry sectorsak.stock_board_industry_summary_ths()TongHuaShun (THS)
North-bound flowak.stock_hsgt_hist_em(symbol='沪股通')EastMoney
TurnoverCalculated from stock_zh_index_spot_sina()Sina
Forexak.fx_spot_quote()-
Commoditiesak.futures_global_spot_em()EastMoney
Newsak.stock_news_em()EastMoney

See references/akshare_apis.md for detailed API mappings and column schemas.

Important: Encoding

On Windows, always set PYTHONIOENCODING=utf-8 when running the script to avoid GBK encoding errors:

PYTHONIOENCODING=utf-8 python scripts/generate_report.py --date 2026-06-16

Error Handling

  • Each API call includes automatic 2-retry with 1s delay for transient failures
  • Failed modules gracefully degrade: show "暂无数据" placeholder in report
  • Sina-based APIs (stock_zh_index_spot_sina, stock_hk_index_spot_sina) are preferred over EastMoney for reliability in China
  • If AKShare is not installed, guide the user to install it first

Related skills

A股每日复盘报告生成器。自动采集通达信+同花顺问财数据,生成含涨停复盘、题材分组、连板梯队、资金流向等25模块的HTML报告。触发词:'生成A股日报'、'A股复盘'、'今日复盘

3 installs

Tonghuashun Financial Data (fuyao.aicubes.cn). Use this skill for ANY Tonghuashun Financial Data request — searching and reading data. Whenever a task involves Tonghuashun Financial Data, use this skill instead of calling the API directly.

生成A股个股深度投资报告。当用户要求撰写股票/公司投资报告、个股分析、估值分析时使用。支持批量生成多份报告。报告包含:公司概况、详细业务构成、财务分析与预测、分部估值(SOTP)、投资逻辑、交易计划、多维度深度分析(政策面/基本面/技术面/情绪面/消息面/资金面)、风险提示、总结。用户只需提供公司名称列表即可触发。

3 installs

Fetch financing event lists from the iYiou skill API and generate daily or recent-N-days financing reports in Markdown to stdout. Use when the task asks to p...

31 installs2 stars

生成个股三维深度分析单页HTML报告。支持A股、港股、美股,从基本面、新闻面、资金面、技术面、估值、同行对比、股东结构等多个维度进行全面分析,输出精美可打印的HTML报告。触发关键词:三维深度分析、个股分析报告、股票深度报告、生成股票HTML报告、Deep Stock Analysis Report。

5 installs

每日收集全球股市资讯(A股/港股/美股/欧股/亚太),覆盖各行业板块,国内国外各至少5条共至少10条,生成标题为「每日动荡+日期」的Markdown报告。当用户要求生成每日股市资讯报告、全球行情速览、市场变动分析,或引用「每日动荡」时使用。报告重点突出「影响当日市场变动的关键消息」而非简单罗列行情,并包含「昨日总结+今日预期」两个核心分析板块。