tushare

Retrieve Chinese market data from the Tushare API for ETFs, funds, futures, and macro indicators.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill tushare-jacobhsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tushare
Source: https://github.com/JacobHsu/vibe-trading-agent/tree/main/agent/src/skills/tushare
Command: npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill tushare-jacobhsu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tushare, pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill reduces the friction of pulling comprehensive Chinese financial data by wrapping the Tushare API guidance, token setup, and usage tips into a single discovery experience for data-source tasks.

Core Features & Use Cases

  • ETFs, bonds, funds, and macro data: The reference library catalogs hundreds of Tushare endpoints, clarifying parameters, limits, and example outputs for each coverage domain.
  • Practical scripts: scripts/stock_data_example.py and scripts/fund_data_example.py demonstrate authenticated requests, pandas handling, and session reuse for daily market research.
  • Use Case: Activate the skill to fetch ETF fundamentals, index constituents, or derivatives calendars when building backtests or answering investor questions about recent liquidity trends.

Quick Start

Ask Tushare for the latest ETF and fund data by supplying your TUSHARE_TOKEN and requesting the desired endpoint in one prompt.

Frequently Asked Questions about tushare

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I pull ETF and fund data from the Tushare financial API?

To pull ETF and fund data from the Tushare financial API, provide your TUSHARE_TOKEN and request the desired endpoint. The skill uses example scripts to handle authenticated requests and shape responses into pandas tables.

What macro and derivative data can I retrieve for Chinese market trading research?

You can retrieve structured economic, equity, and derivative data for Chinese markets, including futures calendars and macro indicators. The reference library catalogs hundreds of endpoints with parameters and example outputs for each domain.

Do I need a valid Tushare token to fetch index constituents for backtesting?

Yes, a valid Tushare token is required to fetch index constituents or ETF fundamentals for backtesting. You must supply this token in your prompt to authenticate requests and retrieve structured market data.

Can I use pandas for shaping Tushare API responses into tables?

Yes, pandas is required for shaping Tushare API responses into structured tables. The provided stock and fund example scripts demonstrate how to handle authenticated requests and use pandas for daily market research.

What is the best way to automate Tushare data access for daily market research?

The best way to automate Tushare data access is by using the provided stock and fund example scripts, which demonstrate session reuse and pandas handling to streamline daily market research and backtest inputs.

Why does my Tushare API request fail when fetching futures and macro indicators?

Tushare API requests fail when fetching futures and macro indicators if the TUSHARE_TOKEN is missing or invalid. Ensure your token is correctly configured in the script to authenticate and retrieve the specific endpoint data.