← Back to Skills Marketplace
martin-sh-ni

Ptrade Skills

by Martin-SH-Ni · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
95
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install ptrade-skills
Description
提供三种高级量化策略,包含小市值选股、8因子打分+ATR止损和热点行业轮动移动止损,支持实盘部署。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ptrade-skills
  3. After installation, invoke the skill by name or use /ptrade-skills
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
PTrade 高级量化策略 Skill 1.0.0 - 提供三个可直接部署的实盘量化策略,包括小市值精选、8因子+ATR风控、多赛道轮动。 - 遵循国金 PTrade 高级编程规范以及无未来函数与过拟合防控红线。 - 明确给出每个策略的选股逻辑、风控规则及预期收益/风险表现。 - 详细列出后续核心优化与研究方向,为后续策略升级提供指引。
Metadata
Slug ptrade-skills
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Ptrade Skills?

提供三种高级量化策略,包含小市值选股、8因子打分+ATR止损和热点行业轮动移动止损,支持实盘部署。 It is an AI Agent Skill for Claude Code / OpenClaw, with 95 downloads so far.

How do I install Ptrade Skills?

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

Is Ptrade Skills free?

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

Which platforms does Ptrade Skills support?

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

Who created Ptrade Skills?

It is built and maintained by Martin-SH-Ni (@martin-sh-ni); the current version is v1.0.0.

💬 Comments