Back to Skills

tushare

面向中文自然语言的 Tushare 数据研究技能。用于把“看看这只股票最近怎么样”“帮我查财报趋势”“最近哪个板块最强”“北向资金在买什么”“给我导出一份行情数据”这类请求,转成可执行的数据获取、清洗、对比、筛选、导出与简要分析流程。适用于 A 股、指数、ETF/基金、财务、估值、资金流、公告新闻、板块概念与宏观数据等研究场景。

284stars42forksUpdated 5/5/2026

Security Assessment

Low Risk(85/100)

Detected risks:

Secret Exposure([SKILL.md] TOKEN=)
Security Score85/100

About tushare

The Tushare skill is designed to convert Chinese natural language queries related to financial data into executable workflows for data retrieval, cleaning, comparison, filtering, exporting, and basic analysis. It addresses the challenge of accessing and analyzing a wide range of financial information for A-shares, indices, ETFs/funds, company financials, valuations, capital flows, announcements, news, sector trends, and macroeconomic data, all without requiring the user to know specific APIs or field names. By interpreting user intent, the skill bridges the gap between human language requests and technical data operations.

This skill offers a variety of capabilities including retrieving recent stock or index trends, checking company fundamentals, financial metrics, and valuation indicators, performing cross-company or sector comparisons, analyzing capital flows and market sentiment, and compiling announcements, news, and macroeconomic indicators. Users can also export datasets in CSV or parquet formats for further analysis or backtesting. It emphasizes generating concise research summaries instead of only presenting raw data tables. Additionally, it includes environment checks for Python version, required packages, and token availability to ensure smooth operation.

Tushare is ideal for financial analysts, researchers, and data scientists who need to quickly access and interpret Chinese financial market data. Common use cases include analyzing recent stock performance, evaluating company financials and valuations, tracking sector or thematic trends, monitoring capital movements, summarizing policy and news impact, and preparing datasets for quantitative research or backtesting. The skill is intended for research and analysis purposes and is not a substitute for investment advice, trading execution, or high-frequency trading systems.

FAQ

What kind of queries can I ask Tushare?

You can ask about recent stock, index, or ETF performance, company financials, valuations, sector trends, capital flows, news, announcements, macroeconomic indicators, and request data exports for analysis.

Which Python version and packages are required?

Tushare requires Python 3.7 or higher and the 'tushare' package installed. It also needs the TUSHARE_TOKEN environment variable for authentication.

Can Tushare provide real-time trading recommendations or execute trades?

No, this skill is for research and data analysis purposes only. It does not provide investment advice, trading recommendations, or automatic execution.

What should I do if Tushare data access is restricted?

If you lack sufficient token permissions or access points, the skill will notify you of the limitations instead of fabricating data. You may need to upgrade your Tushare token or use interfaces within your permission level.

Can I export data for further analysis?

Yes, the skill allows exporting data in CSV or parquet formats for further analysis or backtesting.

All Files

4 files
references/数据接口.md66.3 KB
View
scripts/stock_data_demo.py2.0 KB
View
SKILL.md8.9 KB
View
scripts/fund_data_demo.py1.9 KB
View

Install tushare

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill