← 返回 Skills 市场
Ptrade Skills
作者
Martin-SH-Ni
· GitHub ↗
· v1.0.0
· MIT-0
95
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install ptrade-skills
功能描述
提供三种高级量化策略,包含小市值选股、8因子打分+ATR止损和热点行业轮动移动止损,支持实盘部署。
安全使用建议
This skill contains three coherent trading strategies and uses a 'ptrade' API to fetch market data and place orders. Before installing or running it: 1) Confirm how the 'ptrade' SDK/agent runtime is configured — the skill metadata lists no API keys or env vars, but the code will need brokerage/data credentials and endpoint configuration; ask the author what credentials are required and where they are stored. 2) Do not run against real trading credentials until you test thoroughly in a sandbox/paper environment; these strategies will place orders. 3) The code requests bulk market data (all symbols from get_trade_calendar then get_price for many securities) — ensure you have API quota and that such large requests are intentional. 4) Review and test edge cases: the code swallows many exceptions (which can hide failures), mixes datetime.now and context.now (possible timing/backtest inconsistencies), and one source file in the provided manifest was truncated in the package review — request the complete files. 5) If you intend to deploy live, ask for explicit documentation of required runtime configuration (credentials, SDK version, rate limits) and run a dry-run/paper backtest first.
功能分析
Type: OpenClaw Skill
Name: ptrade-skills
Version: 1.0.0
The skill bundle contains three quantitative trading strategies (Small Cap, Momentum, and Sector Rotation) designed for the PTrade platform. The Python scripts (ptrade_c31_momentum.py, ptrade_sector_rotation.py, and ptrade_smallcap_final.py) implement standard trading logic using the platform's API, including risk management features like ATR-based stop losses and market-wide 'Black Swan' protections. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description match the actual code: three trading strategies (small-cap, 8-factor+ATR, sector rotation) that use a PTrade-style API. However, the skill metadata declares no required env vars or credentials, while every code file imports and calls a 'ptrade' API (get_price, order_shares, get_instrument_info, etc.). That implies missing runtime requirements (API keys, endpoint config or SDK) which is an incoherence between stated metadata and actual runtime needs.
Instruction Scope
SKILL.md and the Python files stick to trading/data tasks (selecting stocks, computing factors, placing orders). They do not attempt to read local files, system configs, or communicate with unexpected endpoints. The instructions include standard anti-lookahead rules and backtest safeguards.
Install Mechanism
No install spec (instruction-only plus included strategy files). Nothing is downloaded or installed by the skill itself — lowest-risk install model. The code does depend on an external 'ptrade' runtime/SDK which is not provided here.
Credentials
The code will require access to the PTrade brokerage/data API (and thus credentials or a configured runtime) but the skill metadata lists no required environment variables or primary credential. That mismatch is important: running these scripts in a live agent will likely need API keys or a configured environment; these are not declared or scoped. Also the code makes bulk requests (get_trade_calendar() then get_price for all A-shares), which may require high API quotas and could expose large amounts of portfolio/market data if used with real brokerage credentials.
Persistence & Privilege
Skill flags are default (not always:true). It does not attempt to modify other skills or persist beyond its own variables. Autonomous invocation is allowed by default but is not by itself a red flag here.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install ptrade-skills - 安装完成后,直接呼叫该 Skill 的名称或使用
/ptrade-skills触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
PTrade 高级量化策略 Skill 1.0.0
- 提供三个可直接部署的实盘量化策略,包括小市值精选、8因子+ATR风控、多赛道轮动。
- 遵循国金 PTrade 高级编程规范以及无未来函数与过拟合防控红线。
- 明确给出每个策略的选股逻辑、风控规则及预期收益/风险表现。
- 详细列出后续核心优化与研究方向,为后续策略升级提供指引。
元数据
常见问题
Ptrade Skills 是什么?
提供三种高级量化策略,包含小市值选股、8因子打分+ATR止损和热点行业轮动移动止损,支持实盘部署。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 95 次。
如何安装 Ptrade Skills?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install ptrade-skills」即可一键安装,无需额外配置。
Ptrade Skills 是免费的吗?
是的,Ptrade Skills 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Ptrade Skills 支持哪些平台?
Ptrade Skills 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Ptrade Skills?
由 Martin-SH-Ni(@martin-sh-ni)开发并维护,当前版本 v1.0.0。
推荐 Skills