← 返回 Skills 市场
coderwpf

tqsdk

作者 coderwpf · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
433
总下载
1
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install tqsdk
功能描述
天勤量化TqSdk - 开源Python期货/期权交易SDK,提供实时行情、回测和实盘交易功能。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tqsdk
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tqsdk 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug tqsdk
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

tqsdk 是什么?

天勤量化TqSdk - 开源Python期货/期权交易SDK,提供实时行情、回测和实盘交易功能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 433 次。

如何安装 tqsdk?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tqsdk」即可一键安装,无需额外配置。

tqsdk 是免费的吗?

是的,tqsdk 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

tqsdk 支持哪些平台?

tqsdk 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 tqsdk?

由 coderwpf(@coderwpf)开发并维护,当前版本 v1.0.2。

💬 留言讨论