A lightweight, zero-dependency quantitative analysis toolkit for Chinese A-shares powered by free, real-time Tencent Market Data APIs.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install a-stock-quant-toolkit
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 a-stock-quant-toolkit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The A-Share Quantitative Finance Toolkit is a comprehensive Python library designed for automated trading, backtesting, and market analysis in the Chinese stock market. Built with a focus on speed and efficiency, its core modules require zero external dependencies, pulling real-time market quotes and historical K-lines directly from Tencent APIs without any registration or API keys.
Integrating this toolkit with Openclaw Skills allows AI-driven coding agents to autonomously fetch market data, perform technical indicator sweeps, assess trading alerts, and write daily summary reports. This transforms static quantitative codebases into dynamic, AI-assisted decision-making engines.
The quantitative toolkit supports a dual runtime setup depending on your system's capabilities.
For real-time price monitoring, scoring, and FFT calculations, only standard Python 3 is required. No packages are needed.
For backtesting, visual graphing, and advanced parameter optimization, run the following CLI commands:
pip install pandas numpy akshare matplotlib mplfinance
Execute strategies and sweeps directly via standard CLI flags:
# Standard quick backtest run
python -m finance_toolkit.backtest_v3 brief
# Advanced run with split segment analytics
python -m finance_toolkit.backtest_v3 full
# Run comprehensive parameter search sweeps
python -m finance_toolkit.backtest_v3 scan
# Perform multi-indicator fusion optimizations
python -m finance_toolkit.backtest_v3 fusion_scan
The toolkit handles streamlined structures for quotes, scores, and spectral metrics. It accepts standard ticker formats including Shanghai (sh600519), Shenzhen (sz000009), or naked codes (000009).
| Field Name | Type | Purpose | Example |
|---|---|---|---|
name |
String | Chinese name of the stock asset | 中国宝安 |
price |
Float | Current real-time price | 9.45 |
change_pct |
Float | Percentage change from previous close | 1.24 |
| Metric Value | Type | Purpose | Range |
|---|---|---|---|
score |
Integer | Overall technical strength | 0 to 60 |
dominant_cycle |
Integer | Peak spectral frequency | Number of days |
signals |
Array | Generated active technical flags | SMA Cross, RSI Overbought |
Loading
Integrates Volcengine's robust web search and summary API to retrieve search results, web summaries, and image metadata directly into your AI workflows.

An advanced multi-agent governance skill designed to teach AI agents how to inspect, document, validate, and safely update OpenClaw registry files and runbooks.

An automated report generation skill that enforces absolute date standardization, content freshness checking, and multi-source cross-reference verification.

A precise text validation skill that determines if a string is composed of integers and designated special characters.

A command-line integrated video search and streaming assistant designed to help users browse, filter, and view detailed video content safely and efficiently.

A fun and deterministic text converter that transforms standard Chinese into 2000s-era internet 'Mars text' while preserving readability.








































