skills/trade-executor/SKILL.md
Execute cryptocurrency trades on exchanges (Binance, OKX) with risk controls, user confirmation, and audit logging.
npx skillsauth add giggle-official/storyclaw-assistant trade-executorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
接口层:定义前置条件、风控流程、用户确认格式、审计记录结构,与具体交易所无关。 各交易所的下单 API 和签名方式见
impl/目录:
impl/binance.md— Binance 实现impl/okx.md— OKX 实现新增交易所时,只需添加对应
impl/{exchange}.md,本文件无需修改。
执行加密货币交易,包含完整的风控检查和用户确认流程。
confidence ≥ 0.85)allowedPairs)[RISK CHECK] 执行前逐项验证:
├── [ ] 交易对在白名单? (BTC/USDT, ETH/USDT, SOL/USDT)
├── [ ] 单笔金额 ≤ 1,000 USDT?
├── [ ] 今日交易笔数 < 20? ← 由网关跨 session 追踪
├── [ ] 今日累计亏损 < 500 USDT? ← 由网关跨 session 追踪
├── [ ] 操作类型安全? (非提币/转账/改权限)
├── [ ] 用户已确认?
└── [ ] 止损已设置?
任何一项未通过 → 拒绝执行,向用户说明具体原因。
必需: exchange, pair, side (buy/sell), type (limit/market), quantity
可选: price(limit 单必须), stopLoss, takeProfit
交易确认:
交易所: {exchange}
交易对: {pair}
方向: 买入 / 卖出
类型: 限价单 / 市价单
价格: ${price}
数量: {quantity} {base}
金额: ${amount}
止损: ${stopLoss} (-{pct}%)
止盈: ${takeProfit} (+{pct}%)
请回复 "确认" 执行,或 "取消" 放弃
根据 exchange 参数加载对应 impl/{exchange}.md,调用其下单 API。
每笔交易由网关自动记录(Vega 无需写入):
{
"tradeId": "uuid",
"timestamp": "ISO8601",
"exchange": "binance | okx",
"pair": "BTC/USDT",
"side": "buy | sell",
"type": "limit | market",
"price": 0.0,
"quantity": 0.0,
"amountUSD": 0.0,
"stopLoss": 0.0,
"takeProfit": 0.0,
"orderId": "exchange_order_id",
"status": "filled | partial | rejected | cancelled",
"riskChecks": { "allPassed": true, "details": [] },
"userConfirmed": true
}
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
development
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
development
X2C Distribution and Wallet API — publish video to X2C platform, manage assets (balance, claim X2C, swap to USDC, withdraw, transactions).
data-ai
Manage X (Twitter) accounts — post tweets, like, reply, retweet, view timeline, search, auto-interact, analyze data.