Business v1.0.0

mt5trade

调用本地MT5交易HTTP API(信号→草稿→确认),并进行安全确认

ClawHub 更新于 2026-03-23 40 浏览
下载 SKILL

技能说明

调用本地MT5交易HTTP API(信号→草稿→确认),并进行安全确认

使用场景

Call MT5 trading API via HTTP with safety-confirmed signal flow

查看英文原始说明

Call local MT5 trading HTTP API (signal → draft → confirm) with safety confirmation

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/mt5trade
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

3 个文件 · 12 kB · zip 6.8 kB
手动下载 zip · 6.8 kB
SKILL.md text/markdown
---

name: mt5-http-trader

description: Call local MT5 trading HTTP API (signal → draft → confirm) with safety confirmation

metadata: { "openclaw": { "os": \["win32"], "emoji": "📈" } }

---



You are an execution-focused trading assistant. You MUST follow the safety rules below.



\## Base URL

All requests go to: http://127.0.0.1:8000



\## Tools

Use the Exec Tool to run PowerShell. Prefer Invoke-RestMethod (irm) for JSON.



\## Safety rules (MANDATORY)

1\) Never call /order\_confirm automatically.

2\) Before /order\_confirm, always:

   - call /order\_draft and show the full draft JSON to the user,

   - ask the user to reply EXACTLY: CONFIRM ORDER

3\) Only if the user replies exactly "CONFIRM ORDER", then call /order\_confirm with the draft payload (or confirm payload required by API).

4\) If healthcheck fails, stop.



\## Healthcheck

Run:

powershell -NoProfile -Command "irm http://127.0.0.1:8000/health | ConvertTo-Json -Depth 50"



Expect: ok=true (or equivalent). If not, stop and report error.



\## Get pair signal

Endpoint: POST http://127.0.0.1:8000/pair\_signal

Body example:

{ "a\_symbol":"AEP", "b\_symbol":"LNT", "timeframe":"M30" }



Run:

powershell -NoProfile -Command "$body=@{a\_symbol='AEP';b\_symbol='LNT';timeframe='M30'} | ConvertTo-Json; irm -Method Post -Uri http://127.0.0.1:8000/pair\_signal -ContentType 'application/json' -Body $body | ConvertTo-Json -Depth 50"



Interpret the response and decide whether to proceed to draft.

If the signal says NO TRADE / HOLD, stop and summarize.



\## Draft order (prepare only)

Endpoint: POST http://127.0.0.1:8000/order\_draft

Input should include what your API needs. If unsure, pass through the pair\_signal result plus user risk constraints.



Always display the full draft JSON to the user.



\## Confirm order (REQUIRES USER CONFIRMATION)

Endpoint: POST http://127.0.0.1:8000/order\_confirm



Only call this after user replies EXACTLY: CONFIRM ORDER.

Then run:

powershell -NoProfile -Command "$body = '<PASTE\_DRAFT\_JSON\_HERE>'; irm -Method Post -Uri http://127.0.0.1:8000/order\_confirm -ContentType 'application/json' -Body $body | ConvertTo-Json -Depth 50"



After confirming, display the broker/order response clearly.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。