一键导入
panic-flatten
MANUAL-ONLY. Emergency-flatten every open OpenTradex position. Never auto-invoked. Only runs when the user explicitly types /opentradex:panic-flatten.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
MANUAL-ONLY. Emergency-flatten every open OpenTradex position. Never auto-invoked. Only runs when the user explicitly types /opentradex:panic-flatten.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Open a paper long position on any enabled rail — Kalshi, Polymarket, Alpaca, or Coinbase. Invoke when the user says "buy", "go long", "paper long", "yes on <market>", or confirms a suggested entry. Requires rail, symbol, qty; price is optional (defaults to a mid-market mark).
Open a local web dashboard showing open positions, exposure, daily P&L, and recent trades. Invoke when the user says "dashboard", "open dashboard", "show my book", "pnl screen", or asks to visualise their paper-trading state. Runs a zero-dependency HTTP server on 127.0.0.1 and prints the URL.
One-time interactive setup that stores API keys for Kalshi, Polymarket, Alpaca, and Coinbase so OpenTradex can scan markets and paper-trade. Invoke this the very first time a user says "set up OpenTradex", "add my keys", or "start trading". Safe to re-run to add or update a rail.
Emergency flatten — closes ALL open paper positions at their last mark and sets a 30-minute trading cooldown. Never auto-invoke. Only run when the user explicitly types "panic", "flatten", "close everything", or "stop".
Show all open paper positions with entry, mark, and unrealized P&L. Invoke when the user says "positions", "what am I holding", "book", "blotter", or checks in on open trades.
Summarize today's risk — open positions, total exposure, daily realized/unrealized P&L, and panic-cooldown status. Invoke when the user says "risk", "how am I doing today", "P&L", "daily", "blotter", or checks before a new entry.
| name | panic-flatten |
| description | MANUAL-ONLY. Emergency-flatten every open OpenTradex position. Never auto-invoked. Only runs when the user explicitly types /opentradex:panic-flatten. |
| disable-model-invocation | true |
| allowed-tools | Bash(curl *), Bash(jq *) |
This is the kill switch. It closes every open position in the OpenTradex harness immediately, regardless of mode.
Before you run the POST, ask the user one short confirmation in chat:
⚠️ PANIC will flatten all open positions at market. Type
yes flattento confirm.
Only proceed if their next message is literally yes flatten (case-insensitive).
curl -s -X POST http://127.0.0.1:3210/api/panic --max-time 10 | jq .
Every trader needs a single button they can hit when something's wrong — a stuck position, a news shock, a risk they didn't price in. This is that button. It is not a trading strategy.