A-Stock Financial Data Assistant for Openclaw

A comprehensive financial data tool for querying real-time A-share stock prices, market trends, and professional analysis reports.

wwzzsl
v0.1.1
Mar 21, 2026
0
798
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install stock-skill-2

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 stock-skill-2 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 A-Stock Financial Data Assistant?

The A-Stock skill is a high-performance financial data connector designed for Openclaw Skills environments. It provides seamless access to the Chinese A-share market (Shanghai and Shenzhen exchanges), enabling developers and analysts to retrieve real-time quotes, technical indicators, and market sentiment data. By leveraging a dedicated TypeScript client, it ensures secure and structured data retrieval from trusted financial sources like East Money and Xueqiu.

This skill goes beyond simple price lookups, offering deep insights into market-wide statistics, Dragon-Tiger lists (LHB), and specific intraday anomalies. It is built with a focus on data integrity, strictly forbidding fallback to search engine estimates and instead requiring precise API-driven results for all financial queries.

A-Stock Financial Data Assistant Use Cases

  • Real-time price tracking for specific 6-digit A-share stock codes.
  • Generating end-of-day market summaries for the Shanghai and Shenzhen exchanges.
  • Analyzing industry sector performance and identifying leading stocks within a board.
  • Monitoring unusual market activities and intraday signals like rocket launches or large buy orders.
  • Historical analysis of individual stock performance using minute-level k-line data.

How A-Stock Financial Data Assistant Works

  1. The agent identifies a financial query related to A-shares or a 6-digit ticker (e.g., 600519).
  2. The skill checks for a valid ASTOCK_API_KEY within the local .env file or environment variables.
  3. Using the bash_tool, the agent executes the TypeScript client (api-client.ts) with the relevant API endpoint and JSON parameters.
  4. The client fetches structured data from api.aipmedia.cn, ensuring secure transmission via headers.
  5. The raw JSON response is parsed and converted into readable Markdown tables for the user.
  6. Expert financial interpretation is appended to the data to highlight key market signals.

A-Stock Financial Data Assistant Setup

To use this within your Openclaw Skills setup, you must first obtain an API key from https://aipmedia.cn/.

Configure your environment by adding the key to your .env file in the project root:

echo "ASTOCK_API_KEY=your_actual_api_key_here" >> .env

Ensure you have Node.js (>=18) and npx installed. The skill is invoked through the following command structure:

npx tsx ~/.gemini/skills/a-stock-skill/scripts/api-client.ts /api/stock/individual_spot '{"symbol":"600519"}'

A-Stock Financial Data Assistant Data Schema & Taxonomy

The skill returns structured financial data organized into specific modules. Below is the primary data taxonomy:

Module Data Source Primary Fields
Market Summary SSE/SZSE Total Market Cap, Circulating Cap, PE Ratio, List Count
Individual Stock East Money/Xueqiu Bid/Ask levels, Turnover Rate, PE/PB, Company Profile
Board Analysis Industry Boards Sector Ranking, Up/Down counts, Leading Stocks
Market Anomalies Monitoring Large Volume Signals, Limit Up/Down status, LHB Net Buy

A-Stock Financial Data Assistant Advanced Features

  • Multi-source redundancy: Automatically falls back to secondary data providers (e.g., from East Money to Xueqiu) if the primary source is unavailable.
  • Intelligent Unit Conversion: Automatically scales large currency figures into Wan (10k) or Yi (100m) for better readability.
  • Signal Detection: Built-in support for 20+ intraday anomaly types, including 'Rocket Launch' and 'Large Buy Orders'.
  • Historical Minute-Data: Supports granular time-series queries with adjustable forward/backward adjustment (QFQ/HFQ).

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*