ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 4/5

Tushare Pro

Fetch Chinese stock and futures market data via Tushare API. Supports stock quotes, futures data, company fundamentals, and macroeconomic indicators. Use when the user needs financial data from Chinese markets. Requires TUSHARE_TOKEN environment variable.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/alphafactor/tushare
Or

What This Skill Does

The tushare skill provides a robust gateway to China's comprehensive financial markets, including A-share stocks and commodity futures. It acts as an integration layer between your OpenClaw agent and the Tushare Pro API. This skill allows users to programmatically fetch real-time market quotes, historical OHLC (Open-High-Low-Close) data, corporate fundamental info, and key macroeconomic indicators like GDP and CPI. By abstracting the complex Tushare Python SDK into simplified command-line scripts, it enables the agent to perform advanced financial analysis and market monitoring without requiring deep manual coding.

Installation

  1. Register for an account at Tushare Pro and generate your unique API Token.
  2. Add the token to your environment variables by adding export TUSHARE_TOKEN="your-api-token-here" to your shell configuration file (e.g., ~/.zshrc or ~/.bashrc).
  3. Install the necessary dependencies via your terminal: pip3 install tushare pandas --user.
  4. Install the skill into your OpenClaw environment using: clawhub install openclaw/skills/skills/alphafactor/tushare.

Use Cases

  • Quantitative Analysis: Retrieve historical daily, weekly, or monthly candlestick data for technical indicator calculation and backtesting strategies.
  • Market Surveillance: Monitor real-time price updates for specific stock tickers or watch futures contracts across major exchanges (SHFE, DCE, CZCE, CFFEX).
  • Macroeconomic Reporting: Automate the collection of national economic data such as GDP growth or CPI indices for report generation and trend visualization.
  • Portfolio Monitoring: Fetch real-time money flow and capital trends to analyze investor sentiment and institutional movements in specific A-share stocks.

Example Prompts

  • "Get the daily closing price for 600519.SH from January 2024 and calculate the average price."
  • "Show me the current real-time market quote for stock 000001 and its recent money flow."
  • "What are the latest GDP growth figures and trends for the most recent quarters?"

Tips & Limitations

  • Rate Limits: Tushare has strict usage limits based on your score on their platform; ensure you have sufficient points to support your agent's frequency of requests.
  • Data Formatting: Pay close attention to stock suffixes (.SH for Shanghai, .SZ for Shenzhen) and futures codes, as the API is sensitive to exact formatting.
  • Environment Variables: Always ensure the TUSHARE_TOKEN is exported in the specific shell instance where OpenClaw runs, otherwise, the scripts will fail to authenticate.

Metadata

Stars3992
Views11
Updated2026-04-10
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-alphafactor-tushare": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#finance#trading#stocks#market-data#tushare
Safety Score: 4/5

Flags: network-access, external-api, code-execution