tushare-data

tushare-data is a skill for Claude Code from Haochenhust/ch-skills. It costs 109 tokens per session (1,593 once invoked), scanned A, original, MIT.

A data tool for retrieving Chinese A-share stock prices, financial statements, valuation measures and shareholder information through the Tushare Pro service.

In plain words
What is it for?
Use it to get daily or weekly prices, profit and loss figures, PE/PB/PS ratios, shareholder changes and earnings forecasts. It requires a Tushare Pro account token and suitable access points.
Why use it?
It avoids manually collecting investment data from different places and provides a repeatable way to fetch it.

Skill for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it to get daily or weekly prices, profit and loss figures, PE/PB/PS ratios, shareholder changes and earnings forecasts. It requires a Tushare Pro account token and suitable access points.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haochenhust/ch-skills/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 Haochenhust/ch-skills --skill tushare-data
Clone the repo
git clone --depth 1 https://github.com/Haochenhust/ch-skills

Made for: Claude Code.

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/haochenhust/ch-skills/tushare-data/github.svg)](https://agentmods.dev/skills/haochenhust/ch-skills/tushare-data)
Your own site
<a href="https://agentmods.dev/skills/haochenhust/ch-skills/tushare-data"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/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/haochenhust/ch-skills/tushare-data"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/tushare-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,593 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.00109 $0.01593
Opus 5 $0.00055 $0.00796
Sonnet 5 $0.00022 $0.00319
Haiku 4.5 $0.00011 $0.00159

Measured 9d ago against content hash db8cb77351ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/fetch_tushare.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.

skills/tushare-data/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tushare Data

Primary structured data source for A-share investment research via the Tushare Pro API. A thin CLI wrapper (scripts/fetch_tushare.py) over the tushare Python SDK.

When to Use

  • Any task needing stock fundamentals, valuation, or financial statements
  • Preferred over AKShare for: financial statements, PE/PB/PS, shareholder data, earnings forecasts
  • AKShare remains preferred for: ETF data, sector fund flows, northbound capital (Tushare needs higher points)

Setup

  1. Get a token: register at https://tushare.pro and copy your API token from the user center. Financial-statement interfaces need ~2000 points.
  2. Install deps and export your token:
python3 -m venv .venv
.venv/bin/pip install tushare pandas
export TUSHARE_TOKEN=<your Tushare Pro token>      # never hard-code this
PY=.venv/bin/python3

The script reads the token from the TUSHARE_TOKEN env var (or a --token flag). Keep it in your shell profile or a secret manager, not in the skill.

Available Interfaces

Market Data

Mode Description Key Fields
daily Daily OHLCV open, high, low, close, vol, pct_chg
weekly Weekly OHLCV Same as daily
monthly Monthly OHLCV Same as daily
daily_basic Daily valuation PE, PE_TTM, PB, PS, turnover, total_mv, circ_mv, dv_ratio
adj_factor Adjustment factor For computing forward/backward adjusted prices
stock_basic Stock list ts_code, name, industry, area, list_date, act_name
trade_cal Trading calendar cal_date, is_open, pretrade_date

Financial Statements

Mode Description Key Fields
income Income statement revenue, total_revenue, n_income, basic_eps, ebit, ebitda
balancesheet Balance sheet total_assets, total_liab, total_hldr_eqy, inventories
cashflow Cash flow n_cashflow_act, n_cashflow_inv_act, free_cashflow
fina_indicator Financial ratios ROE, ROA, grossprofit_margin, netprofit_margin, current_ratio, debt_to_assets, netprofit_yoy

Read the full file on GitHub · 130 lines

Files

What ships with it

2 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. 9d ago First seen · 130 lines · 109 tokens per session scan A db8cb77351ed

Subscribe to this mod's changes

tushare-data is a skill published in the GitHub repository Haochenhust/ch-skills (9 stars, last pushed 1mo ago), licensed MIT. It adds 109 tokens to every session and 1,593 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

rugpull-detector

Analysiert Kryptowährungen auf Rugpull-Risiken und Betrugszeichen. Verwende diesen Skill IMMER wenn: - Ein Nutzer fragt ob ein Coin/Token sicher ist, einen Rugpull-Score will, oder einen Coin analysieren möchte - Jemand einen Coin-Namen + Social Media Erwähnung nennt (z.B. "FOFAR wird von timclassified beworben") …

DjordjeMojsilovic/Djordjes-Claude-Setup · 205 tokens

comptable

Comptabilité, fiscalité et facturation pour entreprises françaises. Gère écritures PCG, déclarations TVA, IS/IR, clôture annuelle, liasse fiscale (2033/2065), FEC, états financiers, et chaîne facturation (mentions obligatoires, numérotation, Factur-X/UBL/CII, plateformes agréées PDP/PA, e-reporting, réforme 2026…

romainsimon/paperasse · 143 tokens

fiscaliste

Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…

romainsimon/paperasse · 302 tokens

syndic

Gère un parc de copropriétés en France avec vue portfolio consolidée. Couvre administration, comptabilité (décret 2005, plan comptable copro, 5 annexes), assemblées générales (convocation, PV, notification), appels de fonds, travaux, fournisseurs, recouvrement d'impayés et transition de syndic. Maîtrise les majorités…

romainsimon/paperasse · 194 tokens

skill-curator

A Chinese-language evaluator for deciding whether developer tools and agent resources are suitable for a curated collection. It checks real repositories, installation paths, activity, duplicates, and security boundaries using evidence.

laolaoshiren/claude-code-skills-zh · 75 tokens

git-workflow

A guide for handling Git repository work safely, including status checks, branches, commits, pushes, pull requests, and rebasing. Git is a version-control system that records code changes and coordinates work between developers.

laolaoshiren/claude-code-skills-zh · 73 tokens