/ Каталог / Песочница / agent-trade-kit
● Сообщество okx ⚡ Сразу

agent-trade-kit

автор okx · okx/agent-trade-kit

OKX's official-adjacent trading MCP — 112 tools for spot, swap, futures, options, grid/DCA bots — with a read-only mode and local-only credential storage.

agent-trade-kit is a Node MCP for OKX trading. Covers market data, spot, perpetual swaps, futures, options, earn, account, and algo/bot strategies — 112 tools in 8 modules. Credentials stay local (no cloud relay). A --read-only flag is provided for analysis-only use.

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

agent-trade-kit.replay ▶ готово
0/0

Установка

Выберите клиент

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "agent-trade-kit": {
      "command": "npx",
      "args": [
        "-y",
        "agent-trade-kit"
      ],
      "_inferred": true
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "agent-trade-kit": {
      "command": "npx",
      "args": [
        "-y",
        "agent-trade-kit"
      ],
      "_inferred": true
    }
  }
}

Cursor использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "agent-trade-kit": {
      "command": "npx",
      "args": [
        "-y",
        "agent-trade-kit"
      ],
      "_inferred": true
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "agent-trade-kit": {
      "command": "npx",
      "args": [
        "-y",
        "agent-trade-kit"
      ],
      "_inferred": true
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "agent-trade-kit",
      "command": "npx",
      "args": [
        "-y",
        "agent-trade-kit"
      ]
    }
  ]
}

Continue использует массив объектов серверов, а не map.

~/.config/zed/settings.json
{
  "context_servers": {
    "agent-trade-kit": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "agent-trade-kit"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

claude mcp add agent-trade-kit -- npx -y agent-trade-kit

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: agent-trade-kit

Research an asset before deciding to trade (read-only)

👤 Crypto traders doing due diligence ⏱ ~20 min advanced

Когда использовать: You're considering a position and want charts + indicators + order book snapshot in one pass — without any risk of accidental trades.

Предварительные требования
  • OKX API key (read-only scope) — OKX > API > Create key with read-only permission
Поток
  1. Start in read-only mode
    Configure agent-trade-kit with --read-only. Confirm trade tools are disabled.✓ Скопировано
    → Only research tools enabled
  2. Pull data
    For SOL-USDT: 4h candles last 30 days, RSI(14), MACD, current funding rate, top-of-book depth, and open interest trend.✓ Скопировано
    → Indicator stack
  3. Synthesize
    What's the short-term technical picture and is it aligned with funding/OI?✓ Скопировано
    → Analysis

Итог: Informed view without execution risk.

Подводные камни
  • TA is not a prediction engine — Use as one input; not a trade signal on its own

Set up a grid bot within conservative parameters

👤 Crypto traders exploring grid strategies ⏱ ~30 min advanced

Когда использовать: You want a range-bound grid on a pair you believe will oscillate.

Предварительные требования
  • Funded OKX account — Real money at stake — tread carefully
  • Full API key (trade scope) — OKX > API; DO NOT enable withdrawal
Поток
  1. Plan
    For ETH-USDT spot: analyze last 30d range. Propose a grid: 40 levels, range $2800-$3400, $50 per grid investment. Show projected returns.✓ Скопировано
    → Grid plan with assumptions
  2. Confirm and create
    Before placing: confirm parameters. If I say 'go', create the grid bot; otherwise abort.✓ Скопировано
    → Explicit confirmation gate

Итог: Grid bot running with sized risk.

Подводные камни
  • Range breakout = grid loses — Set a stop-loss price outside the range; review weekly
  • LLM mis-sizes the order — real money lost — Small starting sizes; verify every parameter before confirming

Check portfolio PnL and open positions

👤 Active traders ⏱ ~5 min intermediate

Когда использовать: Morning check — what do I have open, how is it doing, any risks to my margin?

Поток
  1. Pull account state
    List all open positions (spot + swap + futures) with unrealized PnL. Show account equity + maintenance margin ratio.✓ Скопировано
    → Portfolio snapshot
  2. Risk check
    Which position is at highest liquidation risk? How far from its liq price?✓ Скопировано
    → Risk ranked

Итог: Risk-aware morning check.

Комбинации

Сочетайте с другими MCP — эффект x10

agent-trade-kit + filesystem

Log every trade execution locally for tax/audit

After each trade, append instrument/side/size/price/ts to ~/trades/YYYY-MM.csv.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
market_candles instrument, bar, limit? Price data 1 API call
market_book instrument, depth Liquidity check 1 API call
account_balance Account status 1 API call
spot_place_order instrument, side, size, type, price? Spot execution — destructive; confirm! 1 API call + real money
grid_bot_create instrument, range, levels, total_investment Launch a grid strategy — destructive; confirm! 1 API call + real money

Стоимость и лимиты

Во что обходится

Квота API
OKX API has per-endpoint rate limits
Токенов на вызов
Candles/books can be large — trim by limit
Деньги
Free MCP. Trades incur OKX fees + real money risk.
Совет
Use --read-only until you've read the tool list and trust your prompt discipline.

Безопасность

Права, секреты, радиус поражения

Минимальные скоупы: API key with NO withdrawal permission, ever
Хранение учётных данных: Local via okx config init — stays on disk
Исходящий трафик: To OKX API; account data to your LLM provider
Никогда не давайте: Withdrawal permission on an API key used with an LLM

Устранение неполадок

Частые ошибки и исправления

Signature invalid

API key/secret/passphrase mismatch. Re-run okx config init. Also check server clock (API is time-sensitive).

Insufficient balance for order

Transfer funds to trading account (OKX has multiple wallets).

Tool missing when expected

Per-module filtering may be blocking it; check config.

Альтернативы

agent-trade-kit в сравнении

АльтернативаКогда использоватьКомпромисс
Hummingbot / custom bot frameworksYou want non-LLM automated tradingCode, no LLM; more deterministic
Direct OKX APIYou want full control and can self-auditBuild your own wrapper

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills