AKShare Finance Skill for Openclaw

A powerful financial data retrieval tool for AI agents providing access to Chinese stocks, funds, and macroeconomic indicators without requiring API keys.

grandpaniu-fandougarden
v1.0.0
Apr 22, 2026
1
841
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install finance-query

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install finance-query using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is AKShare Finance Skill?

The AKShare Finance skill integrates the comprehensive AKShare Python library into the AI agent workflow, enabling seamless access to a vast array of financial datasets. It allows developers and users to query real-time and historical market data for Chinese A-shares, indices, futures, and digital currencies. By leveraging Openclaw Skills, this tool simplifies complex financial analysis by providing a unified entry point for diverse data sources without the need for complex API registrations.

Built on top of AKShare 1.18.39, this skill acts as a bridge between raw financial data sources and the AI's reasoning engine. It covers everything from granular stock information to broad macroeconomic trends like GDP and CPI, making it an indispensable asset for any financial research or automated trading environment.

AKShare Finance Skill Use Cases

  • Monitoring real-time stock prices and index movements like the CSI 300 or Shanghai Composite.
  • Retrieving historical K-line data for technical analysis, trend forecasting, and backtesting.
  • Analyzing corporate financial statements including profit reports and balance sheet indicators.
  • Tracking macroeconomic trends in China including GDP, CPI, and PPI data.
  • Checking foreign exchange rates and global digital currency prices such as Bitcoin.

How AKShare Finance Skill Works

  1. The AI agent analyzes the user's natural language request to identify the specific financial data required and the corresponding AKShare interface.
  2. It constructs the necessary command-line arguments, including stock codes (with .SZ or .SH suffixes) and date ranges.
  3. The agent executes the akshare_query.py script located within the Openclaw Skills workspace.
  4. The script fetches the requested data directly from public financial sources, bypassing the need for an API key.
  5. The agent processes the raw output into a structured, human-readable format for the final response.

AKShare Finance Skill Setup

To use this skill within your environment, ensure the Python dependencies are met and the script is accessible. Use the following command structure to query data:

# Basic command structure
python3 /root/.openclaw/workspace/skills/akshare-finance/scripts/akshare_query.py <interface_name> [parameters...]

# Example: Querying real-time A-share market data
python3 akshare_query.py stock_zh_a_spot_em

AKShare Finance Skill Data Schema & Taxonomy

The skill organizes data based on the AKShare interface taxonomy. Below is a summary of the data mapping used within Openclaw Skills:

Category Core Script / Interface Example Parameter
A-Shares stock_zh_a_hist 000001.SZ
Indices stock_zh_index_spot_em 000300.SH
Macroeconomics macro_china_gdp N/A
Funds fund_open_fund_info_em 000001
Digital Currency coin_bitget BTC

Note: Stock and index codes must include the .SZ (Shenzhen) or .SH (Shanghai) suffix for accurate identification.

AKShare Finance Skill Advanced Features

  • Zero-configuration setup requiring no external API keys or subscription secrets.
  • Support for historical price adjustments including pre-adjustment (qfq) and post-adjustment (hfq) for accurate charting.
  • Unified query entry point for over 10 different financial categories including bonds, commodities, and forex.
  • Real-time trading data updates synchronized with market hours (9:30-15:00 CST).
  • Extensible interface support allowing the AI to call any valid AKShare method defined in the reference documentation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*