Tushare Pro

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This front-end provides a programmable interface to fetch real-time and historical stock, futures, and macroeconomic data from the Tushare Pro API, enabling automated analytics workflows without manual API handling.

Core Features & Use Cases

  • Stock & futures data: retrieve real-time quotes, daily, weekly, and monthly prices, plus market fundamentals.
  • Macro data: access GDP, CPI, PPI, and other macro indicators for economic context.
  • Use Case: integrate with data pipelines to refresh market datasets on a schedule and feed dashboards.

Quick Start

Configure your environment and run the market data script to fetch data after setting the TUSHARE_TOKEN.

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 and futures data using Python?

You can fetch Chinese stock and futures data by running a Python script that calls the Tushare Pro API, returning real-time quotes and historical prices directly into pandas DataFrames for analytics.

Can I retrieve macroeconomic indicators like GDP and CPI for the Chinese market?

Yes, you can retrieve Chinese macroeconomic indicators like GDP and CPI. The API provides access to these macro datasets to supply economic context for your financial analytics pipelines.

Do I need an API token to access Tushare market data?

Yes, you need an API token to access Tushare market data. You must configure the TUSHARE_TOKEN environment variable before running the script to authenticate your API requests successfully.

What Python version is required to run the Tushare data script?

Python 3.10 or higher is required to run the Tushare data script. You also need to ensure the tushare and pandas dependencies are installed in your environment to execute the data fetching process.

How do I schedule automated data fetching for Chinese market analytics pipelines?

To schedule automated data fetching for Chinese market analytics pipelines, integrate the Python script into your existing data workflows to refresh market datasets on a schedule and feed dashboards continuously.

What is the best way to get historical daily and weekly prices for Chinese stocks?

The best way to get historical daily and weekly prices for Chinese stocks is using the Tushare Pro API, which allows you to programmatically retrieve historical price data without manual API handling.