A Python-based library that enables querying of Chinese financial market data using natural language sentences via the Tonghuashun Wencai platform.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install pywencai
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install pywencai using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
PyWenCai is a sophisticated Python wrapper designed to interface with the Tonghuashun Wencai natural language search engine. It allows developers to retrieve comprehensive market data—including A-shares, indices, funds, HK/US stocks, and convertible bonds—by simply passing Chinese natural language strings as queries. This tool is a vital component for quantitative researchers and developers leveraging Openclaw Skills to build financial intelligence applications.
The library handles the complexity of interacting with web-based financial data sources by internally executing necessary JavaScript code through Node.js. By providing a structured way to access one of China's most popular financial query platforms, it empowers users within the Openclaw Skills ecosystem to automate data collection and market monitoring without writing complex scrapers.
To get started with this tool in the context of Openclaw Skills, ensure you have Python 3.7+ and Node.js v16+ installed. Install the package via pip:
pip install pywencai --upgrade
You must also manually obtain a Cookie from iwencai.com by logging in via a browser and inspecting the Network tab in Developer Tools (F12) to find the Cookie value in requests sent to iwencai.com.
The data returned by this skill is organized based on the nature of the query and the specified query_type. Most results are returned as structured tabular data.
| Data Type | Description | Return Format |
|---|---|---|
| List Queries | Returns lists of stocks, funds, or indices matching criteria. | pandas.DataFrame |
| Detail Queries | Provides in-depth information about a specific stock or entity. | dict |
| Financial Data | Structured columns covering ROE, revenue, and profit margins. | pandas.DataFrame |
| Market Metadata | Includes stock codes, names, and real-time pricing fields. | pandas.DataFrame |
Users can force consistent DataFrame output by setting the no_detail=True parameter.
loop parameter to fetch thousands of results in one call.request_params to facilitate high-volume data scraping tasks.Loading
A high-performance search skill that empowers AI agents to retrieve real-time web content, images, news, and knowledge graph data via the Serper API.

An automated governance skill designed to enforce communication discipline and execution hygiene within AI agent teams.

An AI agent skill that identifies and validates precise WebCodecs strings for web-based video and audio processing.

A safe and encouraging AI agent that helps users decode text messages and navigate crush situations with playful, grounded advice.

An automated grocery deal tracker that monitors local supermarket offers based on your custom watchlist and preferred search radius.

A professional AI research assistant that subscribes to arXiv fields and delivers bilingual, ranked paper summaries with deep PDF insights.








































