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

Aicoin Account

  • 497 installs
  • 51 repo stars
  • Updated June 9, 2026
  • aicoincom/coinos-skills

aicoin-account is an AiCoin agent skill that retrieves real-time exchange account balances, positions, order history, and API key setup across multiple crypto exchanges for developers building trading agents.

About

aicoin-account is an AiCoin OpenClaw skill for read-only exchange account management across eight supported venues: Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, and Hyperliquid. Node scripts under scripts/ expose balance, positions, open orders, closed orders, my_trades, transfer, registration referral links, api-key-info, and check-tier commands run from the skill directory with node scripts/exchange.mjs. Symbol formats follow CCXT conventions like BTC/USDT for spot and BTC/USDT:USDT for swaps, with Hyperliquid using USDC pairs. API keys load from ~/.coinos/.env or container EnvSection without echoing secrets into chat. Developers reach for it when users ask about余额, 持仓, order history, 注册开户, API key configuration, or tier upgrades on AiCoin-connected exchanges. Registration commands return AiCoin referral links for OKX, Binance, Bybit, Bitget, and Hyperliquid. The check-tier verify flow confirms paid data tier upgrades after checkout at aicoin.com/opendata.

  • Handles all user queries about 'my account', balance, positions, order history, login history, and recent operations
  • Distinguishes clearly from sessions_history (agent chat log) by focusing exclusively on user exchange accounts
  • Built-in referral registration flows for OKX, Binance, Bybit, and Bitget with tracked affiliate links
  • Supports tier upgrade, fund transfer, and API key configuration commands
  • Requires only optional environment variables for the exchanges the user actually trades on

Aicoin Account by the numbers

  • 497 all-time installs (skills.sh)
  • Ranked #1,780 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/aicoincom/coinos-skills --skill aicoin-account

Add your badge

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

Listed on Skillselion
Installs497
repo stars51
Last updatedJune 9, 2026
Repositoryaicoincom/coinos-skills

How do agents read crypto exchange accounts?

Let their agent retrieve real-time exchange account data including balance, positions, order history, and perform registration or API key setup across multiple cr

Who is it for?

Developers building AiCoin or CoinClaw crypto agents who need multi-exchange balance, position, and order-history reads with safe credential handling.

Skip if: Discretionary trade advice without code, stock brokerage accounts outside the eight listed crypto exchanges, or workflows that require echoing API secrets in chat.

When should I use this skill?

User asks about exchange balance, positions, 持仓, order history, API key setup, registration, or tier upgrade on OKX, Binance, Bybit, or Bitget.

What you get

Balance snapshot, open positions, order and trade history, tier status, or registration referral link from exchange API scripts.

  • exchange balance and position snapshot
  • order and trade history JSON

By the numbers

  • Supports 8 crypto exchanges via scripts/exchange.mjs
  • Exposes 10 account commands including balance, positions, and check-tier verify
  • Registration covers 5 referral exchanges: OKX, Binance, Bybit, Bitget, Hyperliquid

Files

SKILL.mdMarkdownGitHub ↗
运行脚本: 从 SKILL.md 所在目录运行 node scripts/<file>.mjs <action>. 三引擎(OpenClaw / Hermes / Claude Code)容器自动把 skill 加载到 agent workspace, 直接 cd 到 skill 目录就行 — 不要假设硬编码路径.

AiCoin Account

Exchange account queries and API key management. Safe read-only operations.

Commands

TaskCommand
Balancenode scripts/exchange.mjs balance '{"exchange":"okx"}'
Positionsnode scripts/exchange.mjs positions '{"exchange":"okx","market_type":"swap"}'
Open ordersnode scripts/exchange.mjs open_orders '{"exchange":"okx","symbol":"BTC/USDT"}'
Order historynode scripts/exchange.mjs closed_orders '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
Trade historynode scripts/exchange.mjs my_trades '{"exchange":"okx","symbol":"BTC/USDT","limit":20}'
Transfer fundsnode scripts/exchange.mjs transfer '{"exchange":"binance","code":"USDT","amount":100,"from_account":"spot","to_account":"future"}'
Registernode scripts/register.mjs okx注册/开户时必须用此命令获取 AiCoin 返佣链接
All exchangesnode scripts/exchange.mjs exchanges
API key infonode scripts/api-key-info.mjs
Check tiernode scripts/check-tier.mjs查看当前套餐等级,检测哪些功能可用
Verify upgradenode 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.

Registration (AiCoin Referral)

When user asks to register/注册/开户, run node scripts/register.mjs <exchange>. Aliases: 币安=binance, 火币=htx, 派网=pionex, hl=hyperliquid.

ExchangeCodeBenefitsLink
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

Setup

交易所 API key 写到 .env 自动加载. CoinClaw 容器里直接在 web UI EnvSection 配置(写入 /workspace/.env). 本地 host 模式统一放 `~/.coinos/.env`(coinos 文件夹, 推荐 —— 不管从哪个目录跑脚本都能读到), 也认当前目录 .env 和旧的 ~/.openclaw/.env(向后兼容).

BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
OKX_API_KEY=xxx
OKX_API_SECRET=xxx
OKX_PASSWORD=your-passphrase

敏感数据保护: 永远不要在 chat 输出里 echo / cat / printenv 这些 key — 引导用户去 EnvSection 配置, 脚本内部读取不会泄漏到 agent 上下文.

Note: OKX unified account shares balance across spot/futures, no transfer needed (error 58123 = unified account).

Related skills

How it compares

Use aicoin-account for multi-exchange balance and order reads; use Longbridge skills for traditional equity and HK/US portfolio data.

FAQ

Which exchanges does aicoin-account support?

aicoin-account supports eight exchanges—Binance, OKX, Bybit, Bitget, Gate.io, HTX, Pionex, and Hyperliquid—via node scripts/exchange.mjs actions for balance, positions, open orders, closed orders, trades, and internal transfers when API keys are configured in .env.

Where should developers store exchange API keys?

aicoin-account loads credentials from ~/.coinos/.env on local hosts or the CoinClaw container EnvSection at /workspace/.env. The skill never echoes BINANCE_API_KEY, OKX_API_SECRET, or passphrases into chat output, keeping secrets out of agent conversation logs.

AI & Agent Buildingagentsautomation

This week in AI coding

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

unsubscribe anytime.