tushare-data

tushare-data is a skill for Claude Code from cyijun/china-financial-services. It costs 70 tokens per session (590 once invoked), scanned A, original, Apache-2.0.

A Chinese-language assistant that maps requests for mainland Chinese stock-market data to the Tushare API. Tushare is a data service for market, financial, valuation, industry, and economic information.

In plain words
What is it for?
Use it for current, non-backtest queries about Chinese stocks and related financial or macroeconomic data.
Why use it?
It keeps track of API names, parameters, units, permissions, retrieval time, and limits when obtaining current raw data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the china-market-researcher plugin — 17 skills, 1 agent shipped together

Good fit Use it for current, non-backtest queries about Chinese stocks and related financial or macroeconomic data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cyijun/china-financial-services/tushare-data
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cyijun/china-financial-services --skill tushare-data
Clone the repo
git clone --depth 1 https://github.com/cyijun/china-financial-services

Made for: Claude Code.

Or install china-market-researcher, the plugin that ships this one along with the rest of its 17 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tushare-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/cyijun/china-financial-services/tushare-data/github.svg)](https://agentmods.dev/skills/cyijun/china-financial-services/tushare-data)
Your own site
<a href="https://agentmods.dev/skills/cyijun/china-financial-services/tushare-data"><img src="https://agentmods.dev/badge/skills/cyijun/china-financial-services/tushare-data/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tushare-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/cyijun/china-financial-services/tushare-data"><img src="https://agentmods.dev/badge/skills/cyijun/china-financial-services/tushare-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 590 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.00590
Opus 5 $0.00035 $0.00295
Sonnet 5 $0.00014 $0.00118
Haiku 4.5 $0.00007 $0.00059

Measured 12d ago against content hash 68b441ebca5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

tushare-data scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fund_data_demo.py, scripts/stock_data_demo.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/china-market-researcher/skills/tushare-data/SKILL.md · 32 lines

What it actually says

Tushare原始数据助手

使用边界

  • 当前、非PIT查询可直接使用本Skill。
  • 涉及as_of、公告可得日、历史股票池、回测、AKShare降级或生产资格时,必须调用china-market-data,本Skill不能宣称数据“回测可用”。
  • Token只从进程环境TUSHARE_TOKEN读取;不得调用全局Token缓存、打印、写入或提交凭证。

工作流

  1. 将问题拆成接口、标的、日期、字段、频率、单位和预期行数。
  2. 在Tushare官方文档核对接口名、参数、字段、积分与行数限制;6000积分只是规划画像,实际权限以本次调用为准。
  3. 单票财务用incomebalancesheetcashflowfina_indicator;全市场截面在权限允许时用对应*_vip接口。
  4. 行情保存不复权价格与adj_factor,不把动态前复权序列直接称作PIT价格。
  5. 分页或分段获取后检查主键、重复、空值、单位和行数上限。空表先诊断日期、参数、上市状态和权限,不自动换源。
  6. 输出原始数据与元信息:接口、去敏参数、抓取时间、返回行数、单位、权限结果和限制。

常用接口

使用references/数据接口.md中的精简清单。不要根据旧接口大全猜测名称或字段;清单外接口先查官方文档。

非PIT原始导出可使用scripts/stock_data_demo.pyscripts/fund_data_demo.py:两者显式limit/offset分页、写入全部记录及响应SHA-256,分页停滞或超过最大页数会失败,不再用head()样例冒充完整结果。它们明确输出pit_eligible=false;历史研究仍必须转china-market-data

输出

区分documentedlive_call_succeededpermission_deniedemptypartial。未运行的接口不能标成可用,离线样例不能标成真实权限验证。

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 32 lines · 70 tokens per session scan A 68b441ebca5b

Subscribe to this mod's changes

tushare-data is a skill published in the GitHub repository cyijun/china-financial-services (19 stars, last pushed 18d ago), licensed Apache-2.0. It adds 70 tokens to every session and 590 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

hithink-finance

A routing guide for accessing Chinese A-share financial data, including prices, company reports, valuations, funds, indices, sectors, and local data storage.

HiThink-Tech/Financial-API · 93 tokens

hithink-finance-fund

A command-line guide for querying fund information, including profiles, managers, holdings, prices, returns, financial data, news, and exchange-traded fund snapshots. A command-line tool is a program controlled by typed terminal commands.

HiThink-Tech/Financial-API · 96 tokens

hithink-finance-data

A local data-management skill for the HiThink Finance command-line tool and its DuckDB database. DuckDB is a database stored in a local file.

HiThink-Tech/Financial-API · 60 tokens

hithink-finance-market

A command-line tool entry for retrieving ordinary Chinese A-share market data, including snapshots, historical price bars, trading calendars, adjustment factors, and company actions.

HiThink-Tech/Financial-API · 89 tokens

hithink-finance-special-data

A command-line tool entry for retrieving special Chinese market lists and event data, such as limit-up stocks, limit-down stocks, unusual moves, hot stocks, and Dragon-Tiger records.

HiThink-Tech/Financial-API · 82 tokens

hithink-finance-futures

A command-line data source for public futures-market information, including contracts, positions, warehouse receipts, basis, trading schedules, and price charts. Futures are agreements to buy or sell an asset at a set future date.

HiThink-Tech/Financial-API · 78 tokens