skills/tushare-data-1.0.5/SKILL.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

69 lines
2.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: tushare
description: tushare是一个财经数据接口包拥有丰富的数据内容如股票、基金、期货、数字货币等行情数据公司财务、基金经理等基本面数据。该模块通过标准化API方式统一了数据资产的对外服务方式以帮助有需要的技术用户更实时、简洁、轻量的使用相关数据。
---
# Tushare
## 概述
tushare是一个财经数据接口包拥有丰富的数据内容如股票、基金、期货、数字货币等行情数据公司财务、基金经理等基本面数据。该模块通过标准化API方式统一了数据资产的对外服务方式以帮助有需要的技术用户更实时、简洁、轻量的使用相关数据。
## 快速上手
- Tushare官网注册获取token并配置环境变量。 [注册地址](https://tushare.pro/register)
- 初始化python运行换环境并安装tushare依赖包。*pip install tushare*
- 查询Tushare接口文档[接口文档](https://tushare.pro/document/2)
- 获取数据, python代码示例-查询正常上市交易的股票列表
```python
import tushare as ts
# 设置token
ts.set_token('<your_token>')
# 初始化pro接口实例
pro = ts.pro_api()
# 查询数据接口(*股票列表*),获取上市交易的股票列表
data = pro.stock_basic(list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
print(df)
```
## 示例脚本
- [股票数据获取示例](scripts/stock_data_example.py)
- [基金数据获取示例](scripts/fund_data_example.py)
## 安装和使用文档
- [安装tushare](references/安装tushare.md) 在线文档https://tushare.pro/document/1?doc_id=29
- [使用tushare](references/使用tushare.md) 在线文档https://tushare.pro/document/1?doc_id=7
## 数据接口文档
- [完整接口文档](references/目录索引.md)
- [在线接口地址](https://tushare.pro/document/2)
### 接口文档统计
| 接口分类 | 接口数量 |
| ---- | ---- |
| ETF专题 | 7 |
| 债券专题 | 15 |
| 公募基金 | 8 |
| 另类数据 | 2 |
| 外汇数据 | 2 |
| 宏观经济 | 22 |
| 指数专题 | 16 |
| 期权数据 | 3 |
| 期货数据 | 14 |
| 港股数据 | 11 |
| 现货数据 | 2 |
| 美股数据 | 9 |
| 股票数据 | 107 |
| 财富管理 | 2 |
| 大模型语料专题数据 | 5 |
| **总计** | **225** |
-