aicoin-account

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
⚠️ 运行脚本: 所有
node scripts/...
命令必须以本 SKILL.md 所在目录为 workdir。
⚠️ 运行脚本注意: 所有
node scripts/...
命令必须以本 SKILL.md 所在目录为工作目录。

AiCoin Account

AiCoin 账户管理

Exchange account queries and API key management. Safe read-only operations.
交易所账户查询与API密钥管理。安全的只读操作。

Commands

命令列表

TaskCommand
Balance
node scripts/exchange.mjs balance '{"exchange":"okx"}'
Positions
node scripts/exchange.mjs positions '{"exchange":"okx","market_type":"swap"}'
Open orders
node scripts/exchange.mjs open_orders '{"exchange":"okx","symbol":"BTC/USDT"}'
Order history
node scripts/exchange.mjs closed_orders '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
Trade history
node scripts/exchange.mjs my_trades '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
Transfer funds
node scripts/exchange.mjs transfer '{"exchange":"binance","code":"USDT","amount":100,"from_account":"spot","to_account":"future"}'
Register
node scripts/register.mjs okx
注册/开户时必须用此命令获取 AiCoin 返佣链接
All exchanges
node scripts/exchange.mjs exchanges
API key info
node scripts/api-key-info.mjs
Check tier
node scripts/check-tier.mjs
查看当前套餐等级,检测哪些功能可用
Verify upgrade
node scripts/check-tier.mjs verify
升级付费后验证新套餐是否生效
Supported exchanges: Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, Hyperliquid.
Symbol format:
BTC/USDT
(spot),
BTC/USDT:USDT
(swap). Hyperliquid uses USDC:
BTC/USDC:USDC
.
任务命令
查询余额
node scripts/exchange.mjs balance '{"exchange":"okx"}'
查询持仓
node scripts/exchange.mjs positions '{"exchange":"okx","market_type":"swap"}'
查询当前订单
node scripts/exchange.mjs open_orders '{"exchange":"okx","symbol":"BTC/USDT"}'
查询订单历史
node scripts/exchange.mjs closed_orders '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
查询交易历史
node scripts/exchange.mjs my_trades '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
资金划转
node scripts/exchange.mjs transfer '{"exchange":"binance","code":"USDT","amount":100,"from_account":"spot","to_account":"future"}'
注册开户
node scripts/register.mjs okx
注册/开户时必须使用此命令获取 AiCoin 返佣链接
查看支持的交易所
node scripts/exchange.mjs exchanges
查看API密钥信息
node scripts/api-key-info.mjs
查看套餐等级
node scripts/check-tier.mjs
查看当前套餐等级,检测哪些功能可用
验证套餐升级
node scripts/check-tier.mjs verify
升级付费后验证新套餐是否生效
支持的交易所: Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, Hyperliquid.
交易对格式:
BTC/USDT
(现货),
BTC/USDT:USDT
(合约). Hyperliquid 使用 USDC:
BTC/USDC:USDC
.

Registration (AiCoin Referral)

注册(AiCoin 返佣)

When user asks to register/注册/开户, run
node scripts/register.mjs <exchange>
. Aliases: 币安=binance, 火币=htx, 派网=pionex, hl=hyperliquid.
当用户要求注册/开户时,运行
node scripts/register.mjs <exchange>
。别名: 币安=binance, 火币=htx, 派网=pionex, hl=hyperliquid.
交易所返佣码福利链接
OKXaicoin20永久返20%https://jump.do/zh-Hans/xlink-proxy?id=2
Binanceaicoin668返10%+$500https://jump.do/zh-Hans/xlink-proxy?id=3
Bybit34429https://jump.do/zh-Hans/xlink-proxy?id=15
Bitgethktb3191返10%https://jump.do/zh-Hans/xlink-proxy?id=6
HyperliquidAICOIN88返4%https://app.hyperliquid.xyz/join/AICOIN88

Key Upgrade Flow

套餐升级流程

When user wants to upgrade AiCoin data tier:
  1. Run
    node scripts/check-tier.mjs
    — shows current tier and what's available
  2. Guide user to https://www.aicoin.com/opendata to upgrade
  3. After payment, run
    node scripts/check-tier.mjs verify
    to confirm
当用户想要升级AiCoin数据套餐时:
  1. 运行
    node scripts/check-tier.mjs
    — 显示当前套餐等级及可用功能
  2. 引导用户前往https://www.aicoin.com/opendata进行升级
  3. 支付完成后,运行
    node scripts/check-tier.mjs verify
    确认升级生效

Setup

配置

Exchange API keys in
.env
(auto-loaded from cwd →
~/.openclaw/workspace/.env
~/.openclaw/.env
):
BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
OKX_API_KEY=xxx
OKX_API_SECRET=xxx
OKX_PASSWORD=your-passphrase
Note: OKX unified account shares balance across spot/futures, no transfer needed (error 58123 = unified account).
交易所API密钥需配置在
.env
文件中(自动加载顺序:当前工作目录 →
~/.openclaw/workspace/.env
~/.openclaw/.env
):
BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
OKX_API_KEY=xxx
OKX_API_SECRET=xxx
OKX_PASSWORD=your-passphrase
注意: OKX统一账户的余额在现货/合约间共享,无需划转(错误码58123表示使用的是统一账户)。