Dividend Premium Tracker
Track the dividend premium (dividend yield minus 10-year bond yield) for CSI Dividend Low Volatility Index.
Description
This skill tracks the dividend premium for the CSI Dividend Low Volatility Index (H30269), which is crucial for investment decisions in China's dividend-focused market. The dividend premium represents the excess return of dividend-paying stocks over risk-free bonds.
What It Tracks
- - CSI Dividend Low Volatility Index Dividend Yield - From China Securities Index
- 10-Year China Government Bond Yield - From Ministry of Finance
- Dividend Premium = Dividend Yield - Bond Yield
Features
- - 📊 Auto-download and track dividend and bond yield data
- 📈 Generate Excel reports with clean charts
- 🔔 Alert when bond yield rises for 3 consecutive days
- 🔔 Alert when premium drops below 1%
- 📅 Support for historical data backfill
Commands
Update Today's Data
CODEBLOCK0
Check Monitoring Alerts
CODEBLOCK1
Backfill Historical Data
CODEBLOCK2
Files
CODEBLOCK3
Setup
Telegram Alerts (Optional)
Set Telegram Bot Token for alerts:
CODEBLOCK4
Cron Job (Daily Update)
CODEBLOCK5
Data Sources
Ministry of Finance |
ChinaBond |
Alert Thresholds
| Condition | Action |
|---|
| Bond yield rises 3 consecutive days | Telegram alert |
| Premium < 1% |
Telegram alert |
Requirements
- - Python 3.10+
- pandas
- openpyxl
- xlrd
- curl (for data download)
Usage Notes
- - Premium is calculated as: INLINECODE0
- Premium < 1% suggests potential buying opportunity
- Premium < 0 indicates dividend stocks are cheaper than bonds
- Historical data from 2026-01-14 to present included
Related Indices:
- - CSI Dividend Low Volatility Index (H30269/000966)
- 10-Year China Government Bond
股息溢价追踪器
追踪中证红利低波动指数的股息溢价(股息率减去10年期国债收益率)。
描述
本技能追踪中证红利低波动指数(H30269)的股息溢价,该指标对中国红利投资市场的决策至关重要。股息溢价代表股息股票相对于无风险债券的超额收益。
追踪内容
- - 中证红利低波动指数股息率 — 来自中证指数有限公司
- 10年期中国国债收益率 — 来自财政部
- 股息溢价 = 股息率 - 国债收益率
功能特点
- - 📊 自动下载并追踪股息与债券收益率数据
- 📈 生成带清晰图表的Excel报告
- 🔔 债券收益率连续3日上升时发出预警
- 🔔 溢价跌破1%时发出预警
- 📅 支持历史数据回填
命令
更新今日数据
bash
python3 scripts/update
dividendpremium.py --update
检查监控预警
bash
python3 scripts/monitor
dividendpremium.py --check
回填历史数据
bash
python3 scripts/update
dividendpremium.py --backfill 2026-01-01 2026-01-31
文件结构
dividend-premium-tracker/
├── SKILL.md # 本文件
├── scripts/
│ ├── updatedividendpremium.py # 主更新脚本
│ └── monitordividendpremium.py # 监控脚本
├── references/ # 文档(可选)
└── assets/ # 输出文件(可选)
设置
Telegram预警(可选)
设置Telegram机器人令牌以接收预警:
bash
export TELEGRAMBOTTOKEN=yourbottoken_here
定时任务(每日更新)
bash
crontab -e
添加行:
0 17
* cd /path/to/skill && python3 scripts/update
dividendpremium.py --update
数据来源
财政部 |
中国债券信息网 |
预警阈值
| 条件 | 操作 |
|---|
| 债券收益率连续3日上升 | Telegram预警 |
| 溢价 < 1% |
Telegram预警 |
环境要求
- - Python 3.10+
- pandas
- openpyxl
- xlrd
- curl(用于数据下载)
使用说明
- - 溢价计算公式:股息率(%) - 国债收益率(%)
- 溢价 < 1% 提示潜在买入机会
- 溢价 < 0 表示股息股票比债券更便宜
- 包含自2026年1月14日至今的历史数据
相关指数:
- - 中证红利低波动指数(H30269/000966)
- 10年期中国国债