tushare-finance

Retrieve Chinese financial market datasets via the Tushare Pro API.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Jaykaijack/openclaw-backup --skill tushare-finance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tushare-finance
Source: https://github.com/Jaykaijack/openclaw-backup/tree/main/skills/tushare-finance
Command: npx skills add https://github.com/Jaykaijack/openclaw-backup --skill tushare-finance

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provide a straightforward, programmatic way to retrieve comprehensive Chinese financial market data (A-share, HK, US, funds, futures, bonds and macro indicators) so users no longer need to manually query different endpoints or scrape disparate sources.

Core Features & Use Cases

  • Unified Python client: a TushareAPI wrapper that reads TUSHARE_TOKEN, normalizes date formats and returns pandas DataFrames for downstream analysis.
  • Common workflows: stock daily prices, index daily, financial statements, fund NAVs, macro indicators (GDP/CPI/PMI), batch queries and bulk export to CSV/Excel.
  • Use case: run a batch query to download daily price series for an index's component stocks, compute returns and export per-stock CSVs for backtesting.

Quick Start

Initialize the included Python TushareAPI client (ensure the TUSHARE_TOKEN environment variable is set) and call get_stock_daily with the desired ts_code and date range.

Frequently Asked Questions about tushare-finance

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

FAQPage Schema
How do I download historical stock prices for Chinese A-shares in bulk?

You can download historical Chinese A-share stock prices in bulk using the Tushare Pro API. The Skill provides helper scripts for batch querying daily price series and exporting the resulting pandas DataFrames directly to CSV files.

Can I use Python pandas to retrieve Chinese macroeconomic indicators like GDP and CPI?

Yes, you can retrieve Chinese macroeconomic indicators like GDP and CPI using Python pandas. The Skill accesses Tushare Pro datasets and returns macro indicator data directly as pandas DataFrames for downstream analysis.

What's the best way to programmatically access Chinese financial market data without web scraping?

The best way to programmatically access Chinese financial market data without scraping is via the Tushare Pro API. This Skill provides a unified Python client that authenticates via TUSHARE_TOKEN and retrieves stock, fund, and bond data.

Does retrieving Tushare financial data require an authentication token?

Yes, retrieving Tushare financial data requires a TUSHARE_TOKEN environment variable for authenticated API access. You must set this token before initializing the Python client to successfully query datasets.

Can I batch export fund NAV and financial statement data to Excel from Tushare?

Yes, you can batch export fund NAV and financial statement data to Excel. The Skill supports bulk exports of Tushare Pro datasets, returning pandas DataFrames that can be saved as CSV or Excel files.

How to normalize date formats when querying A-share and HK market data via Python?

To normalize date formats when querying A-share and HK market data, use the included TushareAPI wrapper. It automatically normalizes date formats across stock, index, and fund datasets before returning pandas DataFrames.