← Back to Skills Marketplace
coderwpf

tqsdk

by coderwpf · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
433
Downloads
1
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install tqsdk
Description
天勤量化TqSdk - 开源Python期货/期权交易SDK,提供实时行情、回测和实盘交易功能。
Usage Guidance
This skill appears to be documentation and examples for the official TqSdk Python library. Before installing or using it: 1) Verify the package source and version (prefer the official GitHub repo or PyPI entry for shinnytech/tqsdk). 2) Be cautious providing trading credentials: the bundle's metadata.json lists TQ_USERNAME/TQ_PASSWORD but the registered skill claims no required env vars — confirm how and where credentials will be stored and used by the agent. 3) Understand that 'pip install tqsdk' will download and execute third-party code; inspect the upstream project (GitHub/PyPI) if you need to audit code. 4) Limit network and credential exposure where possible (use least-privilege test accounts for initial trials). If you want to proceed, fix or clarify the metadata discrepancy with the skill author so the platform correctly prompts for credential configuration.
Capability Analysis
Type: OpenClaw Skill Name: tqsdk Version: 1.0.2 The skill bundle provides a comprehensive interface and documentation for TqSdk, a legitimate Python SDK for futures and options trading. The code examples in SKILL.md and demo.py align with the stated purpose, and the required environment variables (TQ_USERNAME, TQ_PASSWORD) are standard for the service's authentication; no evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
The skill's name, README, and SKILL.md describe the TqSdk trading SDK and include examples that require a trading username/password (TqAuth). That capability legitimately requires credentials and network access to the vendor. However, the registry metadata at the top-level shows "Required env vars: none" while metadata.json lists TQ_USERNAME and TQ_PASSWORD — this mismatch is unexplained and inconsistent.
Instruction Scope
SKILL.md contains usage instructions and code examples that tell the agent to import and use the tqsdk Python library and to pip install tqsdk. The instructions do not ask the agent to read arbitrary system files or to exfiltrate data. They do implicitly cause network activity (connect to Shinnytech/TqSdk services) which is expected for a trading SDK.
Install Mechanism
There is no formal install spec in the skill bundle (instruction-only). The docs recommend 'pip install tqsdk', which is standard. Note: pip installing a package executes code obtained from PyPI (or wherever pip resolves to); this is normal but carries the usual supply-chain risk — verify the package source/version before installing.
Credentials
Requesting trading credentials (username/password) is proportionate to the skill's purpose, but there's a clear inconsistency: the file metadata.json declares env variables TQ_USERNAME and TQ_PASSWORD (and README mentions setting them), whereas the skill registration metadata lists no required env vars. This mismatch could lead to credentials not being requested/handled as expected by the platform or accidentally forwarded. No other unrelated credentials are requested.
Persistence & Privilege
The skill is not marked 'always: true' and does not request elevated or persistent platform privileges. It is user-invocable and allows normal autonomous invocation (the platform default). It does not attempt to modify other skills or global agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tqsdk
  3. After installation, invoke the skill by name or use /tqsdk
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Added a sample project directory `demo_project/` containing `README.md` and `demo.py`. - Provides example code and documentation to help users quickly get started with TqSdk.
v1.0.1
v1.1.0 introduces major documentation updates and improved local language support. - 文档内容全面升级,使用中文详细介绍功能与代码示例 - 技术细节、参数说明、实盘和回测流程等各环节描述更为细致 - 增加“使用技巧”、“目标持仓助手(TargetPosTask)”等实用说明 - 适用范围明确,支持国内主流期货/期权交易所 - 项目描述和文档链接更新为中文版本
v1.0.0
Initial release of TqSdk skill. - Provides open-source Python SDK for futures and options trading with real-time market data, backtesting, and live trading support. - Includes concise getting started guide and code examples for quotes, K-line/tick data, order placement, position and account queries. - Covers both live account and backtest/simulation workflows. - Offers advanced sample strategies, such as dual-contract spread trading and ATR-based stop loss. - Supports all major Chinese futures and options exchanges.
Metadata
Slug tqsdk
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is tqsdk?

天勤量化TqSdk - 开源Python期货/期权交易SDK,提供实时行情、回测和实盘交易功能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 433 downloads so far.

How do I install tqsdk?

Run "/install tqsdk" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is tqsdk free?

Yes, tqsdk is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does tqsdk support?

tqsdk is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created tqsdk?

It is built and maintained by coderwpf (@coderwpf); the current version is v1.0.2.

💬 Comments