条件单投资助手

v1.0.1

[何时使用]当用户问'XX代码怎么投''条件单怎么设''ETF推荐什么策略'时;当用户说'帮我分析这个ETF''我的资金怎么配置条件单'时;当检测到股票代码+投资问题组合时。[不适合]场外基金赎回(周期长)、期货/期权(高风险衍生品)、个股深度基本面分析(需财报数据)。

0· 85·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for lj22503/conditional-order-tool.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "条件单投资助手" (lj22503/conditional-order-tool) from ClawHub.
Skill page: https://clawhub.ai/lj22503/conditional-order-tool
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install conditional-order-tool

ClawHub CLI

Package manager switcher

npx clawhub@latest install conditional-order-tool
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (conditional-order ETF helper) match the included artifacts: an ETF database, strategy references, and two scripts (price fetch + strategy engine). Network access to market quote APIs is reasonable and expected for generating price-dependent parameters.
Instruction Scope
SKILL.md and tests instruct identification, strategy recommendation, and parameter generation. Runtime instructions and code reference only the ETF DB, strategy matrix, and price APIs; there are no directives to read unrelated system files, environment secrets, or to send data to unknown endpoints beyond the quoted market APIs.
Install Mechanism
No install spec; this is an instruction+script bundle. The code files are plain Python and do not download or execute external archives. Network fetches are limited to public market data endpoints (eastmoney, qt.gtimg.cn), which is expected for this use case.
Credentials
The skill requests no environment variables, credentials, or config paths. It uses public, unauthenticated HTTP APIs for price and premium data; no keys or sensitive tokens are required.
Persistence & Privilege
Flags show default behavior (always:false, agent can invoke autonomously). The skill does not request permanent/system-wide privileges or attempt to modify other skills; test scripts write local output files only within the repository (expected for test artifacts).
Assessment
This package appears coherent with its purpose, but before installing: (1) note it will make outbound network requests to EastMoney and Tencent public APIs—if you restrict network access for skills, expect price fetching to fail and the tool to fall back to reference values; (2) the source/homepage is missing—while the repository includes readable Python code, confirm you trust the publisher before enabling autonomous use; (3) the skill does not execute trades or request broker credentials, so it cannot place orders, but do not provide trading account keys or secrets to it; (4) review the ETF_DATABASE for completeness and correctness for your markets, and test outputs on non-sensitive examples first.

Like a lobster shell, security has layers — review code before you run it.

latestvk97e8ep2f2amzs5axfgr79fn1985cjth
85downloads
0stars
2versions
Updated 5d ago
v1.0.1
MIT-0

条件单投资助手 📊

帮助用户根据 ETF/股票代码自动识别品种类型,推荐条件单策略,生成具体参数设置。

适用场景:

  • 用户持有某只 ETF/股票,想知道用什么条件单
  • 用户想了解 6 种条件单的适用场景和具体用法
  • 用户需要根据资金量和风险偏好配置条件单组合
  • 用户想了解不同品种(债券/黄金/行业/宽基)的条件单差异

边界条件:

  • 不替代专业投资建议,参数仅供参考
  • 不处理场外基金(赎回周期长,不适合条件单)
  • 不处理期货/期权等高风险衍生品
  • 个股分析仅限于条件单策略,不含基本面深度分析
  • 实时价格依赖 API,网络不通时需手动输入

⚠️ 常见错误

错误 1:用网格交易做石油/资源 ETF

问题:
• 石油/资源类波动大,容易单边暴涨或暴跌
• 网格在单边行情中会被打穿,越买越套或早早卖飞
• 用户误以为"所有 ETF 都适合网格"

解决:
✓ 石油/资源类只用定价买入 + 定价卖出
✓ 分两批买卖,不做网格
✓ 必须设 -6% 止损

错误 2:股票不设止损

问题:
• ETF 不会退市,股票可能暴雷退市
• 股票可能单边下跌不回头
• 用户用 ETF 的思路做股票,不设止损

解决:
✓ 股票必须设定价卖出止损(-6%~-8%)
✓ 股票不做网格(除非高股息大盘蓝筹,且小仓位)
✓ 股票不做定投(除非超高股息,如国有大行)

错误 3:跨境 ETF 溢价 >5% 还买入

问题:
• 跨境 ETF(纳指/恒生/标普)有溢价风险
• 溢价 >5% 意味着你多付了 5% 以上
• 用户只看价格走势,忽略溢价率

解决:
✓ 跨境 ETF 溢价 >5% 绝对不买
✓ 买入前先查 IOPV 溢价率
✓ 回落卖出幅度设大一些(2%~3%,因为跨境波动大)

错误 4:债券网格格距设太大

问题:
• 债券 ETF 价格波动极小(每天可能只有 0.001~0.003)
• 格距设 1% 永远触发不了
• 用户用宽基 ETF 的格距做债券

解决:
✓ 债券格距设 0.003~0.005(固定值,不是百分比)
✓ 价格区间设 ±0.01
✓ 每笔委托 1000 份起

错误 5:条件单"一劳永逸"不调整

问题:
• 市场环境变化后,原条件单参数不再合理
• 品种走出单边行情,网格失效
• 用户设完就不管了

解决:
✓ 每月复盘一次条件单参数
✓ 品种走出区间后及时调整
✓ 网格在单边行情中手动暂停

🧪 使用示例

输入:

帮我分析 518880 怎么投,资金 5 万

预期输出:

  1. 识别:518880 = 黄金 ETF
  2. 推荐策略:网格交易(⭐⭐⭐⭐⭐)+ 定价买入(⭐⭐⭐⭐)+ 回落卖出(⭐⭐⭐)
  3. 不适合:定价卖出止损(黄金不止损)
  4. 具体参数:
    • 网格:区间 ±4%,格距 0.5%~0.8%,每笔 2%~3% 资金
    • 定价买入:分两档(小跌 97% 买 40%,大跌 94% 买 60%)
    • 回落卖出:涨幅 ≥8% 后回落 1.5% 卖 30%
  5. 免责声明

输入:

513100 条件单怎么设?

预期输出:

  1. 识别:513100 = 纳指 100 ETF(跨境宽基)
  2. 推荐策略:反弹买入 + 回落卖出 + 定价买入
  3. 不适合:网格交易(溢价风险)+ 定投(汇率风险)
  4. 关键提醒:⚠️ 溢价 >5% 绝对不买
  5. 具体参数 + 免责声明

🔗 相关资源

  • scripts/conditional_order.py - 核心分析引擎(品种识别 + 策略推荐 + 参数生成)
  • scripts/fetch_price.py - 实时价格获取(东方财富 API)
  • references/strategy-matrix.md - 6 种条件单完整对比表
  • references/etf-database.md - ETF 代码数据库

🔧 故障排查

问题检查项
价格获取失败检查网络,东方财富 API 可能被墙,需手动输入价格
代码未识别检查代码是否在 ETF_DATABASE 中,不在则需手动指定类型
策略不触发检查 description 是否包含触发词("怎么投""条件单""策略")
参数不合理检查当前价格是否正确,价格错误会导致参数全部偏差
脚本无权限chmod +x scripts/*.py

Comments

Loading comments...