tushare

Fetch structured financial data from Tushare Pro into pandas DataFrames.

4|1|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/pynbj1001/alpha-sense --skill tushare-pynbj1001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tushare
Source: https://github.com/pynbj1001/alpha-sense/tree/main/.agents/skills/tushare
Command: npx skills add https://github.com/pynbj1001/alpha-sense --skill tushare-pynbj1001

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables users to fetch structured financial data from multiple markets through Tushare Pro, returning results as Pandas DataFrames for easy analysis.

Core Features & Use Cases

  • Unified access to A-share, HK, US stocks, funds, ETF, futures, options, bonds, macro indicators, and index constituents via ts_code-based requests.
  • Consistent pandas DataFrame output with provenance details (source, fetch date, endpoint, and fields) for reproducible analytics.
  • Real-world use case: retrieve the latest TS code data and convert it into a ready-to-analyze table for reporting.

Quick Start

Query a ts_code like '000001.SZ' to fetch the latest data from Tushare Pro.

Frequently Asked Questions about tushare

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

FAQPage Schema
How do I fetch A-share and cross-market financial data as a pandas DataFrame?

Fetch cross-market financial data as pandas DataFrames by querying Tushare Pro with ts_code based requests. Supply a valid ts_code like '000001.SZ' to retrieve structured market data for A-shares, HK, US stocks, funds, ETF, futures, options, bonds, and macro indicators.

What financial instruments and markets does Tushare Pro support via ts_code requests?

Tushare Pro supports cross-market financial data retrieval for A-shares, HK stocks, US stocks, funds, ETFs, futures, options, bonds, macro data, and index components. Querying specific ts_code values returns structured data for these instruments directly into pandas DataFrames.

How do I ensure data provenance and lineage when downloading financial data?

Ensure data provenance by automatically recording the source as Tushare Pro, fetch date, endpoint, and required fields alongside the pandas DataFrame output. This lineage tracking guarantees reproducible analytics for all retrieved financial data.

Can I use pandas to retrieve macro data and index components from Tushare Pro?

Yes, use pandas to retrieve macro data and index components from Tushare Pro. The Skill returns macro indicators and index constituents as pandas DataFrames through unified ts_code based requests, integrating seamlessly with existing pandas workflows.

Does fetching financial data from Tushare Pro respect rate limits and waterfall rules?

Fetching financial data from Tushare Pro respects rate limits and waterfall rules during ts_code based requests. The Skill manages these constraints internally to ensure reliable data retrieval without exceeding API thresholds.