← 返回 Skills 市场
gaingush

Tqsdk策略量化

作者 gaingush · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
98
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install tqsdk-quant-strategies
功能描述
提供基于 TqSdk 的量化策略开发、回测和优化,涵盖趋势、套利、多因子等61种成熟策略模板。
安全使用建议
What to consider before installing/using this skill: - Functionality: The bundle is indeed a large offline collection of TqSdk Python strategies — that's coherent with its description. - Credentials: Several strategy files include TqAuth("YOUR_ACCOUNT","YOUR_PASSWORD"). If you plan to run strategies against a real broker, you will need to provide account credentials — the skill metadata does not declare or scope these, which is a red flag. Do NOT paste real credentials into example files; prefer running with TqSim (simulation) first. - Prompt-injection: SKILL.md contained unicode-control characters flagged by a scanner. Inspect SKILL.md for hidden characters or unexpected instructions before trusting automated agents to follow it. - Code quality: Many scripts are educational but some reference undefined variables (e.g., volume_long, volume_short, position) and have other rough edges. Expect to review and possibly fix code before running. Treat the repository as code samples, not production-ready bots. - Safety steps before running: (1) Review all files locally; (2) Run only with a simulated account (TqSim) until you audit behavior; (3) Never supply real broker credentials to the skill/agent without manual verification of the exact code that will execute; (4) Add required environment variables explicitly and avoid leaving credentials in plaintext in files; (5) Remove or investigate any hidden/unicode-control characters in SKILL.md. If you want, I can: (A) scan the repository for occurrences of TqAuth/TqAccount usage and list files that would require credentials; (B) point out specific files with undefined variables or logic bugs to fix before running in real trading.
能力标签
crypto
能力评估
Purpose & Capability
The name/description (TqSdk strategy library) matches the large set of included Python strategy files. However the code assumes use of TqSdk auth (TqAuth) and real trading accounts (placeholders YOUR_ACCOUNT / YOUR_PASSWORD) even though metadata.requires.env lists no credentials; that mismatch should be clarified (if you plan to run strategies against a broker you will need credentials).
Instruction Scope
SKILL.md instructs the agent to read and explain strategy code (expected) and gives useful guidance, but the pre-scan flagged 'unicode-control-chars' in SKILL.md (a common prompt-injection vector). The instructions otherwise do not demand unrelated file reads or external exfiltration, but the injection signal means the SKILL.md should be reviewed carefully before trusting its runtime instructions.
Install Mechanism
There is no install spec (instruction-only), which reduces install-time risk. README instructs installing tqsdk via pip (pip install tqsdk -U) — reasonable and expected. No downloads from arbitrary URLs are present.
Credentials
Many strategy files call TqAuth(...) and TqSim() and contain placeholders for account/password; yet the skill declares no required environment variables or primary credential. This omission is inconsistent: running for real will require broker credentials, but those are not declared nor scoped. Also several strategy files reference variables like volume_long, volume_short or position without defining them (code-quality bugs) — none of which justify requesting broad system credentials, but they increase the chance an operator will paste credentials into files or commands to 'make it work'.
Persistence & Privilege
Skill does not request elevated platform privileges; always=false and no special config paths. It is user-invocable and allows autonomous invocation (platform default) — no additional persistence or privileged modifications are requested by the package.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tqsdk-quant-strategies
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tqsdk-quant-strategies 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Improved formatting and clarity in documentation for better readability. - Adjusted section titles and bullet points for consistency. - Updated “AI 响应建议”部分,优化了策略推荐逻辑描述。 - Consolidated相关说明,增强文档结构。
v1.0.1
更新描述
v1.0.0
基于 TqSdk 的全策略量化库,支持构建完整的量化交易策略,支持多级别回测,内置 MA、BOLL、RSI、MACD、ATR 等常用技术指标,功能涵盖:①经典趋势与突破(海龟、DualThrust、SuperTrend);②均值回归与日内(VWAP、R-Breaker);③机构级对冲(跨品种套利、期限结构基差);④截面选股轮动(多因子打分、行业轮动);⑤进阶 AI 预测(机器学习排名、波动率自适应)等
元数据
Slug tqsdk-quant-strategies
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Tqsdk策略量化 是什么?

提供基于 TqSdk 的量化策略开发、回测和优化,涵盖趋势、套利、多因子等61种成熟策略模板。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 Tqsdk策略量化?

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

Tqsdk策略量化 是免费的吗?

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

Tqsdk策略量化 支持哪些平台?

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

谁开发了 Tqsdk策略量化?

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

💬 留言讨论