chore: update daily macro morning brief
一个每天早上自动更新的全球宏观与跨资产市场晨报系统。
项目会采集公开 RSS、主要市场行情、加密资产、港股、A 股指数、FRED、SEC 披露和用户自有研报文件,生成结构化数据、Markdown/HTML 报告、图表,并自动导出 GitHub Pages 可直接打开的 public/index.html。
public/index.html
Not financial advice / 非投资建议。本项目仅用于个人学习、研究和信息整理,不提供投资建议,不做自动交易,不绕过任何付费墙。
GitHub Pages:
https://georgeorange-crypto.github.io/FinTech/
如果 Pages 尚未启用,请按下方“GitHub Pages 设置”开启。启用后,这个链接会打开每日最新晨报首页。
每天运行后,系统会自动生成:
index.html
reports/YYYY-MM-DD.md
reports/YYYY-MM-DD.html
charts/YYYY-MM-DD/*.png
data/processed/YYYY-MM-DD/*.json
public/reports/YYYY-MM-DD.html
public/charts/YYYY-MM-DD/*.png
public/metadata.json
其中 public/index.html 会直接内嵌最新一天晨报正文,并展示 dashboard cards、市场状态和今日三大主线。根目录 index.html 也会同步生成一份,方便仓库首页或其他静态托管方式直接使用。 只要 GitHub Pages 指向 /public,打开 Pages 网址看到的就是每日最新晨报。
/public
在 GitHub 仓库中进入:
Settings -> Pages
选择:
Deploy from a branch
main
保存后,GitHub Pages 会把 public/index.html 作为站点首页。项目每日自动运行后,public/index.html 会被更新并提交,Pages 首页也会跟着更新。
Pages 链接:
工作流文件:
.github/workflows/daily-brief.yml
触发方式:
workflow_dispatch
GitHub Actions 的 cron 使用 UTC,因此配置为:
cron: "0 22 * * *"
这等价于 Asia/Taipei 每天 06:00。
risk_on
risk_off
rates_shock
inflation_shock
dollar_liquidity_tightening
crypto_specific
mixed
unknown
config/ 配置文件 src/ 核心代码 collectors/ 数据采集 analyzers/ 新闻、资产影响、市场状态分析 charts/ 图表生成 reports/ Markdown/HTML/Public 首页生成 models/ Pydantic 数据结构 utils/ 工具函数 reports/ 每日 Markdown 和 HTML 报告 charts/ 每日图表 data/processed/ 每日结构化数据 data/history/ 事件和行情历史 JSONL public/ GitHub Pages 静态站点输出 tests/ pytest 测试
核心配置都在 config/:
config/
assets.yml
rss_feeds.yml
macro_series.yml
watchlist_cik.yml
importance_rules.yml
asset_impact_rules.yml
report_profile.yml
示例 report_profile.yml:
language: zh top_news_limit: 10 include_background_materials: true max_tier3_in_top_news: 2 focus_regions: - US - China - Hong Kong - EU - Japan focus_assets: - SPY - QQQ - TLT - DXY - GC=F - CL=F - BTC - ETH - ^HSI - 沪深300
python -m venv .venv .venv\Scripts\activate pip install -r requirements.txt python -m src.main --date today --no-llm
常用命令:
python -m src.main --date today python -m src.main --date 2026-05-22 python -m src.main --no-llm python -m src.main --only-market python -m src.main --only-news python -m src.main --build-index
today 默认使用 Asia/Taipei 日期,避免 GitHub runner 的 UTC 日期导致晨报日期偏差。
today
在 Settings -> Secrets and variables -> Actions 中按需配置:
Settings -> Secrets and variables -> Actions
FRED_API_KEY
COINGECKO_API_KEY
TUSHARE_TOKEN
LLM_PROVIDER
LLM_API_KEY
SEC_USER_AGENT
没有这些 key 时,相关模块会跳过或降级,不会中断主流程。
inputs/reports/
Not financial advice / 非投资建议
pytest ruff check . python -m src.main --date today --no-llm python -m src.main --build-index
外部数据源失败会写入:
data/processed/YYYY-MM-DD/warnings.json
不会导致整个晨报失败。
每日财报
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Global Macro Morning Brief
一个每天早上自动更新的全球宏观与跨资产市场晨报系统。
项目会采集公开 RSS、主要市场行情、加密资产、港股、A 股指数、FRED、SEC 披露和用户自有研报文件,生成结构化数据、Markdown/HTML 报告、图表,并自动导出 GitHub Pages 可直接打开的
public/index.html。最新报告首页
GitHub Pages:
如果 Pages 尚未启用,请按下方“GitHub Pages 设置”开启。启用后,这个链接会打开每日最新晨报首页。
每天运行后,系统会自动生成:
index.htmlreports/YYYY-MM-DD.mdreports/YYYY-MM-DD.htmlcharts/YYYY-MM-DD/*.pngdata/processed/YYYY-MM-DD/*.jsonpublic/index.htmlpublic/reports/YYYY-MM-DD.htmlpublic/charts/YYYY-MM-DD/*.pngpublic/metadata.json其中
public/index.html会直接内嵌最新一天晨报正文,并展示 dashboard cards、市场状态和今日三大主线。根目录
index.html也会同步生成一份,方便仓库首页或其他静态托管方式直接使用。 只要 GitHub Pages 指向/public,打开 Pages 网址看到的就是每日最新晨报。GitHub Pages 设置
在 GitHub 仓库中进入:
Settings -> Pages选择:
Deploy from a branchmain/public保存后,GitHub Pages 会把
public/index.html作为站点首页。项目每日自动运行后,public/index.html会被更新并提交,Pages 首页也会跟着更新。Pages 链接:
自动运行
工作流文件:
触发方式:
workflow_dispatch手动运行GitHub Actions 的 cron 使用 UTC,因此配置为:
这等价于 Asia/Taipei 每天 06:00。
功能概览
risk_on、risk_off、rates_shock、inflation_shock、dollar_liquidity_tightening、crypto_specific、mixed、unknown目录结构
配置文件
核心配置都在
config/:assets.yml:资产分组rss_feeds.yml:公开 RSS 源macro_series.yml:FRED 宏观序列watchlist_cik.yml:SEC watchlistimportance_rules.yml:事件分类、tier、routine 规则asset_impact_rules.yml:资产影响方向、强度和原因report_profile.yml:晨报偏好示例
report_profile.yml:本地运行
常用命令:
today默认使用 Asia/Taipei 日期,避免 GitHub runner 的 UTC 日期导致晨报日期偏差。Secrets
在
Settings -> Secrets and variables -> Actions中按需配置:FRED_API_KEYCOINGECKO_API_KEYTUSHARE_TOKENLLM_PROVIDERLLM_API_KEYSEC_USER_AGENT没有这些 key 时,相关模块会跳过或降级,不会中断主流程。
数据合规
inputs/reports/Not financial advice / 非投资建议开发检查
外部数据源失败会写入:
不会导致整个晨报失败。
Roadmap