← Back to Skills Marketplace
gaingush

Tqsdk策略量化

by gaingush · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ⚠ suspicious
98
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install tqsdk-quant-strategies
Description
提供基于 TqSdk 的量化策略开发、回测和优化,涵盖趋势、套利、多因子等61种成熟策略模板。
Usage Guidance
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.
Capability Tags
crypto
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install tqsdk-quant-strategies
  3. After installation, invoke the skill by name or use /tqsdk-quant-strategies
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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 预测(机器学习排名、波动率自适应)等
Metadata
Slug tqsdk-quant-strategies
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Tqsdk策略量化?

提供基于 TqSdk 的量化策略开发、回测和优化,涵盖趋势、套利、多因子等61种成熟策略模板。 It is an AI Agent Skill for Claude Code / OpenClaw, with 98 downloads so far.

How do I install Tqsdk策略量化?

Run "/install tqsdk-quant-strategies" 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 gaingush (@gaingush); the current version is v1.0.3.

💬 Comments