Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aicoincom avatar

Aicoin Trading

  • 40 installs
  • 51 repo stars
  • Updated June 9, 2026
  • aicoincom/aicoin-skills

aicoin-trading is a Claude Code skill for placing and closing centralized-exchange crypto orders through a preview-then-confirm script.

About

aicoin-trading is a Claude Code skill for placing and managing centralized-exchange crypto orders. A developer uses it to buy, sell, go long or short, set leverage and close positions through a single create_order/close_position script on exchanges like Binance, OKX and Hyperliquid. Every order is a strict two-step preview-then-confirm flow, and the skill forbids auto-confirming or writing custom order code.

  • Dedicated CEX order-placement skill: buy, sell, long, short, leverage, close position
  • Mandatory two-step preview-then-confirm flow, no auto-confirm
  • Uses close_position for exits to avoid accidental reverse orders

Aicoin Trading by the numbers

  • 40 all-time installs (skills.sh)
  • Ranked #636 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

aicoin-trading capabilities & compatibility

Needs exchange API keys in .env; trading itself incurs exchange fees paid by the user.

Capabilities
crypto trading · order placement · leverage management · position close
Use cases
trading
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What aicoin-trading says it does

**交易所:** Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, Hyperliquid。
SKILL.md
**禁止自动确认。** `create_order` / `close_position` 第一次调用返回预览(含风险提示)
SKILL.md
npx skills add https://github.com/aicoincom/aicoin-skills --skill aicoin-trading

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs40
repo stars51
Last updatedJune 9, 2026
Repositoryaicoincom/aicoin-skills

What it does

Place, size and close confirmed leverage and spot crypto orders on centralized exchanges from Claude Code.

Who is it for?

Placing and closing confirmed spot and leverage orders on centralized exchanges.

Skip if: Market data (use aicoin-market), Freqtrade bots (use aicoin-freqtrade) or on-chain DEX swaps (use aicoin-onchain).

When should I use this skill?

The user asks to buy, sell, go long or short, set leverage or close a position on an exchange.

What you get

Confirmed spot and leverage orders and safe position closes on centralized exchanges.

  • order previews and confirmed executions
  • leverage and margin settings
  • position closes

By the numbers

  • 8 supported exchanges
  • 5 hard trading rules

Files

SKILL.mdMarkdownGitHub ↗
⚠️ 运行脚本: 必须先 cd 到本 SKILL.md 所在目录再执行。示例: `cd ~/.openclaw/workspace/skills/aicoin-trading && node scripts/exchange.mjs ...`

AiCoin Trading — 下单专用

⛔ 铁律(违反任何一条都是严重错误)

1. 禁止写代码下单。 不准写 import ccxtnew ccxt.okx()fetch("https://...") 或任何自定义代码来下单。所有订单只能通过 node scripts/exchange.mjs create_order 执行。 2. 禁止自动确认。 create_order / close_position 第一次调用返回预览(含风险提示),你必须把预览完整展示给用户,等用户回复"确认"或"yes"后,才能第二次调用加 "confirmed":"true" 执行。 3. 禁止修改用户参数。 余额不够就告诉用户,不准自动调整数量或杠杆。 4. 禁止主动平仓。 除非用户明确要求。 5. 平仓必须用 `close_position`。 禁止用 create_order 构建平仓单(容易开反向单)。

下单流程(两步,不可跳过)

步骤1: node scripts/exchange.mjs create_order '{"exchange":"okx","symbol":"BTC/USDT:USDT","type":"market","side":"buy","amount":1,"market_type":"swap"}'
→ 返回预览(交易对、方向、数量、价格、杠杆、保证金、风险提示)
→ 你必须把所有字段展示给用户

步骤2: 用户确认后
node scripts/exchange.mjs create_order '{"exchange":"okx","symbol":"BTC/USDT:USDT","type":"market","side":"buy","amount":1,"market_type":"swap","confirmed":"true"}'
→ 实际下单

平仓流程(两步,不可跳过)

平仓必须用 `close_position`,禁止用 `create_order` 手动构建平仓单(容易开反向单)。

步骤1: node scripts/exchange.mjs close_position '{"exchange":"okx","market_type":"swap"}'
→ 返回所有持仓预览(交易对、方向、张数、盈亏)
→ 展示给用户

步骤2: 用户确认后
node scripts/exchange.mjs close_position '{"exchange":"okx","market_type":"swap","confirmed":"true"}'
→ 市价平掉所有持仓(自动 reduceOnly)

指定交易对只平部分:加 "symbol":"BTC/USDT:USDT"

下单前准备

步骤命令
设置杠杆+保证金模式node scripts/exchange.mjs set_trading_params '{"exchange":"okx","symbol":"BTC/USDT:USDT","leverage":10,"margin_mode":"isolated","market_type":"swap"}'
查合约信息node scripts/exchange.mjs markets '{"exchange":"okx","market_type":"swap","base":"BTC"}'

其他命令

操作命令
平仓(全部或指定)node scripts/exchange.mjs close_position '{"exchange":"okx","market_type":"swap"}' — 加 "symbol":"BTC/USDT:USDT" 只平单个
取消订单node scripts/exchange.mjs cancel_order '{"exchange":"okx","symbol":"BTC/USDT","order_id":"xxx"}'
单独设杠杆node scripts/exchange.mjs set_leverage '{"exchange":"okx","symbol":"BTC/USDT:USDT","leverage":10,"market_type":"swap"}'

数量

合约自动换算: amount 传用户说的币数量(如 0.01),脚本自动转张数。传整数则视为张数。 用 USDT 金额下单: 当用户说"用10U做多"或"花10 USDT开仓",传 cost=10(USDT保证金金额),不要传 amount。脚本会根据当前价格、杠杆自动计算合约张数。 现货: amount = 币数量。

格式: 现货 BTC/USDT,合约 BTC/USDT:USDT,Hyperliquid 用 USDC: BTC/USDC:USDC

交易所: Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, Hyperliquid。

Related skills

FAQ

Can aicoin-trading auto-place orders?

No. Every order is a two-step flow: a preview first, then execution only after the user replies confirm, and auto-confirm is forbidden.

How are positions closed?

Only via close_position, which the docs require to avoid accidentally opening a reverse order with create_order.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.