Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

tushare

Skill by charliedream1

Tushare is a financial data interface package. It provides stock, fund, futures and digital currency market data, plus company financials and fund manager data. It is aimed at technical users who want lightweight, standardized API access to this data.

  • Score 94
  • 6.8k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tushare

Built from the published package, never by AI.

git clone --depth 1 https://github.com/charliedream1/ai_quant_trade /tmp/ai_quant_trade && mkdir -p ~/.claude/skills && cp -r /tmp/ai_quant_trade/egs_skill/vibe_trading_skills/tushare ~/.claude/skills/tushare

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install tushare in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Tushare is a financial data interface package. Its data covers market quotes for stocks, funds, futures and digital currencies, along with fundamental data such as company financials and fund manager information. The source says it exposes these data assets through a standardized API.

Users install the Python tushare package and set a token from a Tushare account in the TUSHARE_TOKEN environment variable. They pick an interface from the online documentation and call it through the pro API, which returns a pandas DataFrame. Dates use the YYYYMMDD format and stock codes use the ts_code format, such as 000001.SZ. The listing includes interface tables for ETFs, bonds, convertible bonds, bond yield curves and a global financial calendar. It is aimed at technical users who want real-time, concise and lightweight access to this data.

Written from the project's SKILL.md and checked against it.

What it can do

  • stock_basicFetches the list of listed stocks with code, name, area, industry and list date.
  • rt_etf_kGets real-time daily K-line quotes for ETFs, by ETF code or code wildcard.
  • stk_minsGets historical ETF minute data at 1, 5, 15, 30 or 60 minute intervals.
  • etf_basicGets basic information on domestic ETFs, including QDII funds.
  • cb_dailyGets daily quotes for convertible bonds.
  • yc_cbGets China Central Depository bond yield curve data, spot and maturity yields.
  • eco_calGets a global financial calendar including economic event data updates.

What you need

  • Python 3.7 or later (recommended)
  • tushare Python package
  • A Tushare account and API token

Try asking

  • List all currently listed A-share stocks with their industry and list date.
  • Get the daily quotes for convertible bonds from a given date range.
  • Show the China government bond yield curve for today using Tushare.

Good to know

  • Some data comes from public disclosures and is provided for personal and institutional research, not commercial use.
  • ETF share and size data is loaded in batches, so the source recommends fetching it after 19:00.
  • Overseas ETF data updates later than domestic data, which the source describes as normal.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: egs_skill/vibe_trading_skills/tushare/SKILL.md, egs_skill/vibe_trading_skills/tushare/scripts/fund_data_example.py, egs_skill/vibe_trading_skills/tushare/scripts/stock_data_example.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md122 KB
  • references/ETF专题/ETF份额规模.md3 KB
  • references/ETF专题/ETF历史分钟.md3 KB
  • references/ETF专题/ETF基准指数.md2 KB
  • references/ETF专题/ETF基本信息.md5 KB
Show all 232 files
  • references/ETF专题/ETF复权因子.md2 KB
  • references/ETF专题/ETF实时分钟.md1 KB
  • references/ETF专题/ETF实时日线.md3 KB
  • references/ETF专题/ETF日线行情.md2 KB
  • references/债券专题/债券回购日行情.md5 KB
  • references/债券专题/全球财经事件.md4 KB
  • references/债券专题/可转债发行.md3 KB
  • references/债券专题/可转债基础信息.md3 KB
  • references/债券专题/可转债技术面因子(专业版).md8 KB
  • references/债券专题/可转债票面利率.md2 KB
  • references/债券专题/可转债行情.md4 KB
  • references/债券专题/可转债赎回信息.md2 KB
  • references/债券专题/可转债转股价变动.md2 KB
  • references/债券专题/可转债转股结果.md3 KB
  • references/债券专题/国债收益率曲线.md2 KB
  • references/债券专题/大宗交易.md2 KB
  • references/债券专题/大宗交易明细.md3 KB
  • references/债券专题/柜台流通式债券报价.md2 KB
  • references/债券专题/柜台流通式债券最优报价.md2 KB
  • references/公募基金/基金净值.md2 KB
  • references/公募基金/基金分红.md3 KB
  • references/公募基金/基金列表.md3 KB
  • references/公募基金/基金技术面因子(专业版).md6 KB
  • references/公募基金/基金持仓.md3 KB
  • references/公募基金/基金管理人.md2 KB

And 202 more files on GitHub.

Alternatives to tushare

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

tushare: common questions

What financial markets does tushare cover?

The source says it covers quotes for stocks, funds, futures and digital currencies, plus fundamental data such as company financials and fund managers.

What format does tushare return data in?

The source says the returned format is a pandas DataFrame. Dates use YYYYMMDD and stock codes use the ts_code format, such as 000001.SZ.

How does tushare authenticate requests?

The example code reads a token from the TUSHARE_TOKEN environment variable or from a locally saved token via ts.get_token(), then passes it to ts.pro_api().

How do I install tushare?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is tushare free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is tushare safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to tushare?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

tushare Install

Add to stack

Loading.