tushare

Fetch and consolidate financial market data from stocks, funds, and futures via Tushare's API.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Tushare provides a unified API to access a wide range of financial market data, allowing developers to fetch stocks, funds, futures, and crypto data from a single source.

Core Features & Use Cases

  • Unified API for stocks, funds, futures, and other asset classes, enabling rapid data-driven research and modeling.
  • Ready-to-use data slices for backtesting, analytics, and automated dashboards across multiple markets.
  • Real-world use: Integrate real-time prices, NAVs, and market indicators into an automated analysis pipeline.

Quick Start

Install the tushare package, configure your API token, and fetch market data using pro_api().

Frequently Asked Questions about tushare

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

FAQPage Schema
How do I fetch stock and futures data using a unified API?▼

To fetch stock and futures data using a unified API, install the tushare package, configure your API token, and use pro_api() to retrieve structured outputs for analytics and research.

What is the best way to access financial market data for backtesting?▼

Accessing financial market data for backtesting is best done through a standardized API that offers ready-to-use data slices across stocks, funds, and futures, enabling rapid data-driven modeling and automated dashboards.

Can I use tushare with pandas for automated data analysis?▼

Yes, you can use tushare with pandas for automated data analysis, as the API returns structured outputs that integrate seamlessly into pandas pipelines for backtesting, analytics, and model development.

Do I need an API token to retrieve fund and stock data?▼

Yes, an API token is required to retrieve fund and stock data, as the unified API uses token-based authentication to securely manage multi-entity queries and rate-limiting safeguards.

Does the Tushare API handle rate limiting for production data pipelines?▼

Yes, the Tushare API handles rate limiting for production data pipelines by incorporating built-in error handling and rate-limiting safeguards to ensure robust automated usage.

Why does fetching finance data fail without proper error handling?▼

Fetching finance data fails without proper error handling because API requests may exceed rate limits or encounter authentication errors, which the built-in safeguards manage to ensure robust production usage.