Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

aicoin

БесплатноЗапускает вложенные скриптыНе проверен

Use this skill when the user asks to buy, sell, or trade crypto on exchanges like Binance, OKX, Bybit, Bitget, Gate, HTX, KuCoin, MEXC, or Coinbase — spot or…

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

AiCoin

Crypto data & trading toolkit powered by AiCoin Open API.

Setup Checklist

Scripts auto-load .env files from these locations (earlier paths take priority):

  1. Current working directory (.env)
  2. ~/.openclaw/workspace/.env
  3. ~/.openclaw/.env

Before asking the user for ANY credentials, first check if .env already exists:

grep -c "AICOIN_ACCESS_KEY_ID" ~/.openclaw/workspace/.env 2>/dev/null || echo "0"
  • If output is 1 or more → .env has AiCoin key configured. Skip setup, just run scripts directly.
  • If output is 0 → No AiCoin key, but the built-in free key works automatically. Just run scripts.

Only ask setup questions when the user explicitly requests features that need configuration:

  • Exchange trading (Binance, OKX, etc.) → needs exchange API keys + cd <skill-dir>/aicoin && npm install for ccxt
  • Freqtrade bot → run ft-deploy.mjs deploy (auto-configures everything, needs Python 3 + exchange keys in .env)
  • Proxy access → needs PROXY_URL

Do NOT block the user from running commands. The skill works out of the box with the built-in free key.

How to Configure Environment Variables

The .env file location is ~/.openclaw/workspace/.env. When adding new variables:

  1. Check if .env already exists:

    test -f ~/.openclaw/workspace/.env && echo "EXISTS" || echo "NOT_FOUND"
    
  2. If EXISTS → append (do NOT overwrite):

    echo 'PROXY_URL=socks5://127.0.0.1:7890' >> ~/.openclaw/workspace/.env
    
  3. If NOT_FOUND → create:

    echo 'PROXY_URL=socks5://127.0.0.1:7890' > ~/.openclaw/workspace/.env
    
  4. If a key already exists and needs updating, replace the specific line:

    sed -i '' 's|^PROXY_URL=.*|PROXY_URL=socks5://127.0.0.1:7890|' ~/.openclaw/workspace/.env
    

NEVER overwrite the entire .env file — it may contain other credentials the user has already configured.

SECURITY: How to Run Scripts

Scripts auto-load .env — NEVER pass credentials inline. Just run:

node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'

NEVER do this — it exposes secrets in conversation logs:

# WRONG! DO NOT DO THIS!
AICOIN_ACCESS_KEY_ID=xxx node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'

If a script fails due to missing env vars, guide the user to update their .env file instead of injecting variables into the command.

Environment Variables

Create a .env file in the OpenClaw workspace directory (recommended):

# AiCoin API (optional — built-in free key works with IP rate limits)
# Mapping: AiCoin website "API Key" → AICOIN_ACCESS_KEY_ID
#          AiCoin website "API Secret" → AICOIN_ACCESS_SECRET
AICOIN_ACCESS_KEY_ID=your-api-key
AICOIN_ACCESS_SECRET=your-api-secret

# Exchange trading — only if needed (requires: npm install -g ccxt)
BINANCE_API_KEY=xxx
BINANCE_API_SECRET=xxx
# Supported: BINANCE, OKX, BYBIT, BITGET, GATE, HTX, KUCOIN, MEXC, COINBASE
# For OKX also set OKX_PASSWORD=xxx

# Proxy for exchange access — only if needed
# Supports http, https, socks5, socks4
PROXY_URL=socks5://127.0.0.1:7890
# Or standard env vars: HTTPS_PROXY=http://127.0.0.1:7890

# Freqtrade — auto-configured by ft-deploy.mjs, no manual setup needed
# FREQTRADE_URL=http://localhost:8080
# FREQTRADE_USERNAME=freqtrader
# FREQTRADE_PASSWORD=auto-generated

IMPORTANT — AiCoin API Key Configuration:

  1. The user may provide two values without labels (just two strings copied from the AiCoin website). Do NOT guess which is which. Ask the user to confirm: "哪个是 API Key,哪个是 API Secret?" Or look for the labels in the user's message.

  2. After writing keys to .env, ALWAYS verify by running a test call:

    node scripts/coin.mjs coin_ticker '{"coin_list":"bitcoin"}'
    
  3. If the test returns error code 1001 (signature verification failed), the keys are swapped. Fix by swapping them:

    # Read current values, swap them
    OLD_KEY=$(grep '^AICOIN_ACCESS_KEY_ID=' ~/.openclaw/workspace/.env | cut -d= -f2)
    OLD_SECRET=$(grep '^AICOIN_ACCESS_SECRET=' ~/.openclaw/workspace/.env | cut -d= -f2)
    sed -i '' "s|^AICOIN_ACCESS_KEY_ID=.*|AICOIN_ACCESS_KEY_ID=${OLD_SECRET}|" ~/.openclaw/workspace/.env
    sed -i '' "s|^AICOIN_ACCESS_SECRET=.*|AICOIN_ACCESS_SECRET=${OLD_KEY}|" ~/.openclaw/workspace/.env
    

    Then re-run the test to confirm it works.

Or configure in ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "aicoin": {
        "enabled": true,
        "apiKey": "your-aicoin-access-key-id",
        "env": {
          "AICOIN_ACCESS_SECRET": "your-secret"
        }
      }
    }
  }
}

Prerequisites

  • Node.js — required for all scripts
  • ccxt — required only for exc
Полный SKILL.md на GitHub

Установить aicoin в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

lib/aicoin-api.mjslib/defaults.jsonlib/freqtrade-api.mjspackage.jsonscripts/auto-trade.mjsscripts/coin.mjsscripts/exchange.mjsscripts/features.mjsscripts/ft-deploy.mjsscripts/ft-dev.mjsscripts/ft.mjsscripts/hl-market.mjsscripts/hl-trader.mjsscripts/market.mjsscripts/news.mjsscripts/newsflash.mjsscripts/twitter.mjs

FAQ

Что делает скилл aicoin?

Use this skill when the user asks to buy, sell, or trade crypto on exchanges like Binance, OKX, Bybit, Bitget, Gate, HTX, KuCoin, MEXC, or Coinbase — spot or futures, place orders, check balance, set leverage, view positions, or cancel orders. Also use when the user asks for crypto market data: real-time prices, K-lines, funding rates, open interest, liquidation data, whale tracking, AI analysis, order flow, news, Twitter/X crypto tweets, Hyperliquid on-chain data, or Freqtrade bot control. Also use when the user asks to set up automated trading, deploy Freqtrade, backtest strategies, or control a trading bot. Scripts auto-load .env — just run them directly. If a script fails due to missing credentials, guide the user through the Setup Checklist in SKILL.md.

Как установить скилл aicoin?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл aicoin запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить aicoin с