A specialized skill for developing, debugging, and optimizing algorithmic trading strategies using the TqSdk Python framework.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install tqsdk-skill
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 tqsdk-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides comprehensive support for the TqSdk Python library, enabling developers to build robust algorithmic trading systems. It covers the entire lifecycle of trading development, from retrieving real-time market data and historical K-line series to managing complex order execution and performing backtests. By leveraging Openclaw Skills, developers can quickly implement the mandatory wait_update loop, handle both futures and stock accounts correctly, and utilize advanced tools like TargetPosTask for automated position management.
To get started with this skill, ensure you have the TqSdk library installed in your Python environment.
pip install tqsdk
Initialize your trading script by importing the necessary components and setting up your TqApi instance with authentication:
from tqsdk import TqApi, TqAuth
api = TqApi(auth=TqAuth("your_username", "your_password"))
The skill organizes information across several key technical domains to ensure accurate trading logic:
| Component | Description | Key Metadata/Fields |
|---|---|---|
| Market Data | Quotes, K-lines, and Ticks | symbol, last_price, datetime, volume, open_interest |
| Account Info | Futures and Stock account data | balance, available, frozen, risk_ratio, float_profit |
| Trading Objects | Active Orders and Positions | order_id, direction, offset, volume_orign, status |
| Task Helpers | Execution and Scheduling | target_pos, price_mode, interval, active_tasks |
Loading
A fast, offline-first command-line tool for organizing household inventory, tracking expiry dates, and automating shopping schedules.

A privacy-focused, offline command-line tool for logging vehicle trips, fuel economy, and maintenance schedules.

A high-performance CLI tool for logging health symptoms, tracking wellness patterns, and visualizing long-term health trends offline.

A diagnostic tool to detect runaway token loops and estimate the cost of AI agent workflows.

An AI-powered real estate search tool for discovering second-hand homes, rentals, new developments, and school-district information across 11 major Chinese cities.

A comprehensive AI-driven assistant designed to guide students through the full lifecycle of the China International College Students' Innovation Competition.








































