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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/alphafactor/tushareWhat 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
- Register for an account at Tushare Pro and generate your unique API Token.
- 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). - Install the necessary dependencies via your terminal:
pip3 install tushare pandas --user. - 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_TOKENis exported in the specific shell instance where OpenClaw runs, otherwise, the scripts will fail to authenticate.
Metadata
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-alphafactor-tushare": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
todo
**macOS Only** - Manage macOS Reminders app via AppleScript. Full-featured reminder management: add, list, complete, delete, search, create lists, and more. **Note: This skill is macOS-only**, requiring the native Reminders app. Use cases: - Create reminders with due dates and priorities - List reminders from specific lists or incomplete ones - Mark reminders as complete/uncomplete - Delete reminders - Search reminders by title or content - Create new reminder lists - View today's due reminders
Wechat Connect
Install OpenClaw's official WeChat plugin and complete account pairing via QR code scan. Triggers when the user says "install WeChat plugin", "connect WeChat", or "WeChat QR code". No command-line interaction required.
Ghost
Skill by alphafactor
Crypto Market
Cryptocurrency market data and price alert monitoring tool based on CCXT. Supports multiple exchanges, real-time price tracking, and configurable price/volatility alerts. Use when the user needs to monitor crypto prices or set up trading alerts. Default exchange is Binance.
homekit
Control Apple HomeKit smart home devices. Supports listing, discovering, pairing devices, and controlling lights, switches, outlets, thermostats. Use when the user needs to manage HomeKit accessories programmatically. Requires homekit library and paired devices.