Skip to content
Finance
Skill

/tushare-finance-skill

获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。

BOOST
From plugin
alicemarket
14278 skills
Install
$ npx -y skills add Wind-Alice/AliceMarket --skill tushare-finance-skill --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/tushare-finance-skill

Context preview

The summary Claude sees to decide when to auto-load this skill.

获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。

SKILL.md

tushare-finance-skill.SKILL.md
name: tushare-finance
description: 获取中国金融市场数据(A股、港股、美股、基金、期货、债券)。支持220+个Tushare Pro接口:股票行情、财务报表、宏观经济指标。当用户请求股价数据、财务分析、指数行情、GDP/CPI等宏观数据时使用。
allowed-tools:
  - Bash(python:*)
  - Read

Tushare 金融数据 Skill

本 skill 通过 Tushare Pro API 获取中国金融市场数据,支持 220+ 个数据接口。

快速开始

1. Token 配置

**询问用户**:是否已配置 Tushare Token?

如未配置,引导用户: 1. 访问 https://tushare.pro 注册 2. 获取 Token 3. 配置环境变量:`export TUSHARE_TOKEN="your_token"`

2. 验证依赖

检查 Python 环境:

python -c "import tushare, pandas; print('OK')"

如报错,安装依赖:

pip install tushare pandas

常用接口速查

| 数据类型 | 接口方法 | 说明 | |---------|---------|------| | 股票列表 | `pro.stock_basic()` | 获取所有股票列表 | | 日线行情 | `pro.daily()` | 获取日线行情数据 | | 财务指标 | `pro.fina_indicator()` | 财务指标(ROE等) | | 利润表 | `pro.income()` | 利润表数据 | | 指数行情 | `pro.index_daily()` | 指数日线数据 | | 基金净值 | `pro.fund_nav()` | 基金净值数据 | | GDP数据 | `pro.gdp()` | 国内生产总值 | | CPI数据 | `pro.cpi()` | 居民消费价格指数 |

**完整接口列表**:查看 [接口文档索引](reference/README.md)

数据获取流程

1. **查找接口**:根据需求在 [接口索引](reference/README.md) 找到对应接口 2. **阅读文档**:查看 `reference/接口文档/[接口名].md` 了解参数 3. **编写代码**:

   import tushare as ts

   # 初始化(使用环境变量中的 Token)
   pro = ts.pro_api()

   # 调用接口
   df = pro.daily(ts_code='000001.SZ', start_date='20241201', end_date='20241231')

4. **返回结果**:DataFrame 格式

参数格式说明

  • **日期**:YYYYMMDD(如 20241231)
  • **股票代码**:ts_code 格式(如 000001.SZ, 600000.SH)
  • **返回格式**:pandas DataFrame

接口文档参考

**接口索引**:[reference/README.md](reference/README.md)

接口文档按类别组织:

  • 股票数据(39 个接口)
  • 指数数据(18 个接口)
  • 基金数据(11 个接口)
  • 期货期权(16 个接口)
  • 宏观经济(10 个接口)
  • 港股美股(23 个接口)
  • 债券数据(16 个接口)

参考资源

  • **Tushare 官方文档**:https://tushare.pro/document/2
  • **API 测试工具**:https://tushare.pro/document/1
Read more
Ships withalicemarket

Wind 万得金融 Skill 集合(monorepo) · 通过 MCP 协议把万得金融数据接入 Claude / OpenClaw / Hermes 等 AI Agent,并一站式收录 wind 自家数据 + 社区分析工作流共 34 个金融 skill

Get the whole plugin

Other skills on alicemarket.

avatar-charlie-munger-thinking
Skill

avatar-charlie-munger-…

使用查理·芒格式的逆向思考、激励分析、认知偏误叠加和多学科模型检验复杂决策。用于评估商业与投资判断、组织行为、政策效果、重大选择、全民共识、失败风险,或识别论证中的单一视角和心理盲区。

avatar-nassim-taleb-risk
Skill

avatar-nassim-taleb-ri…

使用纳西姆·塔勒布式的尾部风险、利益共担、减法、林迪效应和杠铃策略分析不确定性。用于投资、商业、政策、职业、产品或个人决策中的出局风险、不可逆损失、脆弱性、代理问题、新旧方案比较和资源配置。

avatar-naval-ravikant-thinking
Skill

avatar-naval-ravikant-…

使用纳瓦尔·拉维坎特式的重新定义、欲望审计、特定知识和杠杆框架澄清职业、创业、财富、幸福、自由与人生选择。用于识别错误问题、冲突欲望、独特竞争力、AI替代风险、许可依赖、边际成本和长期复利方向。