Tushare Pro

Fetch Chinese stock and futures market data from the Tushare Pro API.

Updated Mar 11, 2026
One-click install
npx skills add https://github.com/ISAQQSAI/SkillAttack --skill tushare-pro-isaqqsai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Tushare Pro
Source: https://github.com/ISAQQSAI/SkillAttack/tree/main/data/hot100skills/051_alphafactor_tushare
Command: npx skills add https://github.com/ISAQQSAI/SkillAttack --skill tushare-pro-isaqqsai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables quick retrieval of Chinese stock and futures market data from Tushare, including quotes, historical data, company fundamentals, and macro indicators, eliminating manual data gathering.

Core Features & Use Cases

  • Real-time & historical data: fetch stock quotes, daily/weekly/monthly data, and futures data.
  • Fundamentals & macro: access company info and macro indicators via Tushare.
  • Use Case: A data analyst needs daily stock prices for 000001.SZ and macro GDP figures for a report.

Quick Start

Run python3 scripts/market.py daily --ts_code 000001.SZ to fetch daily stock data.

Frequently Asked Questions about Tushare Pro

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

FAQPage Schema
How do I fetch Chinese stock market data using Python?

To fetch Chinese stock market data using Python, you can retrieve quotes, daily prices, and company fundamentals from the Tushare API by executing Python scripts with a valid TUSHARE_TOKEN. This assembles historic and real-time datasets for analysis.

Can I get Chinese futures market data and macro indicators via Tushare?

Yes, you can get Chinese futures market data and macro indicators via Tushare. The API provides access to futures quotes, historical prices, and macro GDP figures to build comprehensive financial datasets for reporting.

Do I need a TUSHARE_TOKEN environment variable to retrieve historical stock prices?

Yes, you need a TUSHARE_TOKEN environment variable to retrieve historical stock prices. You must also install the tushare and pandas Python dependencies to authenticate and structure your market data queries successfully.

What is the best way to assemble daily and weekly market datasets for Chinese stocks?

The best way to assemble daily and weekly market datasets for Chinese stocks is using the Tushare API to automate data gathering. Running a Python script fetches real-time and historical prices, eliminating manual data collection for analysts.

Does fetching Tushare market data require pandas for data processing?

Yes, fetching Tushare market data requires pandas for data processing. Alongside the tushare dependency, pandas structures the retrieved quotes, daily prices, and company fundamentals into comprehensive datasets ready for financial analysis.