Loading...
Loading...
This skill should be used when the user asks about exchange trading, placing orders, checking balance, viewing positions, order history, market list, leverage, margin mode, transferring funds, or automated trading. Use when user says: 'buy BTC', 'sell ETH', 'check balance', 'place order', 'open long', 'open short', 'close position', 'set leverage', 'auto trade', 'view positions', '下单', '买入', '卖出', '查余额', '做多', '做空', '平仓', '设杠杆', '自动交易', '合约交易', '现货交易'. Supports Binance, OKX, Bybit, Bitget, Gate.io, HTX, KuCoin, MEXC, Coinbase, Hyperliquid. For crypto prices/charts/news, use aicoin-market. For Freqtrade strategies, use aicoin-freqtrade. For Hyperliquid whale tracking/analytics (not trading), use aicoin-hyperliquid.
npx skill4agent add aicoincom/aicoin-skills aicoin-tradingcreate_order"confirmed":"true"exchange.mjsenvprintenv.env| Task | Command |
|---|---|
| Balance | |
| Ticker | |
| Orderbook | |
| Buy (preview) | |
| Positions | |
| Set leverage | |
| Auto-trade setup | |
BTC/USDTBTC/USDT:USDT.envnpm install.env~/.openclaw/workspace/.env~/.openclaw/.env# Format: {EXCHANGE}_API_KEY / {EXCHANGE}_API_SECRET
# Supported: BINANCE, OKX, BYBIT, BITGET, GATE, HTX, KUCOIN, MEXC, COINBASE
BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
# OKX additionally needs passphrase:
OKX_API_KEY=xxx
OKX_API_SECRET=xxx
OKX_PASSWORD=your-passphrase
PROXY_URL=socks5://127.0.0.1:7890 # optional# Wallet address (0x...) — this is your public address, NOT an API key
HYPERLIQUID_API_KEY=0x1234...abcd
# Private key (0x...) — export from MetaMask/Rabby, or use HL Agent Wallet
HYPERLIQUID_API_SECRET=0xabcd...1234HYPERLIQUID_API_KEYHYPERLIQUID_API_SECRETBTC/USDC:USDCETH/USDC:USDCmarketslimits.amount.mincontractSizebalanceamountcontractSize| User says | Spot amount | Swap amount (OKX BTC, contractSize=0.01) |
|---|---|---|
| "0.01 BTC" | | |
| "1张合约" | N/A | |
| "100U" | | |
| Action | Description | Params |
|---|---|---|
| Supported exchanges | None |
| Market list | |
| Real-time ticker | |
| Order book | |
| Recent trades | |
| OHLCV candles | |
| Action | Description | Params |
|---|---|---|
| Account balance | |
| Open positions | |
| Open orders | |
| Order history | |
| Trade history | |
| Order by ID | |
| Action | Description | Params |
|---|---|---|
| Place order | Spot: |
| Cancel order | |
| Set leverage | |
| Margin mode | |
| Transfer funds | |
spotfuturedeliverymarginfunding~/.openclaw/workspace/aicoin-trade-config.json| Action | Description | Params |
|---|---|---|
| Save trading config | |
| Config + balance + positions | |
| Open position | |
| Close position + cancel orders | |
openauto-trade.mjs setupauto-trade.mjs statusopenclaw cron add --name "BTC auto trade" --every 10m --session isolated \
--message "Use aicoin-market to fetch data, analyze, then use aicoin-trading auto-trade.mjs open/close"| Need | Use |
|---|---|
| Prices, K-lines, news, signals | aicoin-market |
| Freqtrade strategies/backtest | aicoin-freqtrade |
| Hyperliquid whale tracking | aicoin-hyperliquid |
errorCode 304 / HTTP 403Invalid symbolBTC/USDTBTC/USDT:USDTBTC/USDC:USDCInsufficient balanceAPI key invalid.envRate limit exceeded| Tier | Price | Highlights |
|---|---|---|
| Free | $0 | Prices, K-lines, trending coins |
| Basic | $29/mo | + Funding rate, L/S ratio, news |
| Standard | $79/mo | + Whale orders, signals, grayscale |
| Advanced | $299/mo | + Liquidation map, indicator K-lines, depth |
| Professional | $699/mo | All endpoints: AI analysis, OI, stocks |
.envAICOIN_ACCESS_KEY_ID=your-key-id
AICOIN_ACCESS_SECRET=your-secret.env~/.openclaw/workspace/.env~/.openclaw/.env