
Aicoin Trading
This is a Claude skill for placing trades on centralized exchanges like Binance, OKX, and Bybit. It enforces a strict two-step confirmation flow: every order shows you a preview first, you confirm it, then it executes. The source material is unusually paranoid about safety, which is probably the right stance when you're moving real money. It handles spot and perpetual futures, supports leverage settings, and has a dedicated close_position command to avoid accidentally opening reverse positions when you meant to exit. The skill blocks you from writing custom trading code and forces everything through a single script interface. If you're building an AI agent that needs to execute CEX trades without shooting itself in the foot, this gives you guardrails.
- skills.sh installs
- 545
- GitHub stars
- 58
- last updated
- Aug 21, 2026
Install
$ npx -y skills add aicoincom/coinos-skills --skill aicoin-trading --agent claude-codeInstalls into .claude/skills of the current project.
Files
运行脚本: 从 SKILL.md 所在目录运行
node scripts/exchange.mjs <action>. 三引擎(OpenClaw / Hermes / Claude Code)容器自动加载 skill, 直接cd到 skill 目录即可.
AiCoin Trading — 下单专用
⛔ 铁律(违反任何一条都是严重错误)
- 禁止写代码下单。 不准写
import ccxt、new ccxt.okx()、fetch("https://...")或任何自定义代码来下单。所有订单只能通过node scripts/exchange.mjs create_order执行。 - 禁止自动确认。
create_order/close_position第一次调用返回预览(含风险提示),你必须把预览完整展示给用户,等用户回复"确认"或"yes"后,才能第二次调用加"confirmed":"true"执行。 - 禁止修改用户参数。 余额不够就告诉用户,不准自动调整数量或杠杆。
- 禁止主动平仓。 除非用户明确要求。
- 平仓必须用
close_position。 禁止用create_order构建平仓单(容易开反向单)。 - 杠杆 / 保证金模式改动必须先确认。
set_trading_params和set_leverage不是只读操作 — 它们改交易所账户的合约配置,直接影响后续所有订单的保证金占用、爆仓价、强平距离。100x 杠杆和 5x 杠杆的爆仓距离差 20 倍,用户没明确说改之前不准 silent set。调用前必须:用自然语言告诉用户你准备把哪个交易所、哪个交易对的杠杆 / margin_mode 从什么改成什么、影响是什么,等用户回复"确认"或"yes"才能执行。
反例 ❌:用户说"开 100x 多 BTC",你不反问杠杆是不是写错了直接
set_trading_params leverage=100然后下单 — 用户可能是口误想说 10x,100x 直接 silent 设了风险极高。 正确 ✅:先回"100x 杠杆爆仓距离只有约 0.95%(不算手续费),BTC 一根 5 分钟 K 线就能扫掉。确认是 100x 还是想说 10x?",等用户明确回答再 set。
下单流程(两步,不可跳过)
Sponsors
Details
- Repository
- github.com/aicoincom/coinos-skills
- Categories
- Sales & Marketing, Finance & Trading, Web3 & Blockchain
- First seen
- Jun 3, 2026