tushare-finance
Installation
Summary
Access 220+ Chinese financial market data APIs covering stocks, indices, funds, futures, and macroeconomic indicators.
- Supports A-shares, Hong Kong stocks, US stocks, funds, futures, bonds, and macro data (GDP, CPI) through Tushare Pro
- Requires Tushare Token configuration via environment variable; Python dependencies include tushare and pandas
- Data returned as pandas DataFrames with standardized date format (YYYYMMDD) and stock code format (ts_code)
- Organized interface documentation across seven categories: stocks (39 APIs), indices (18), funds (11), futures/options (16), macro (10), Hong Kong/US stocks (23), and bonds (16)
SKILL.md
Tushare 金融数据 Skill
本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。
快速开始
1. Token 配置
询问用户:是否已配置 Tushare Token?
如未配置,引导用户:
- 访问 https://tushare.pro 注册
- 获取 Token
- 配置环境变量:
export TUSHARE_TOKEN="your_token"