/ Directorio / Playground / agent-trade-kit
● Comunidad okx ⚡ Instantáneo

agent-trade-kit

por 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.

Por qué usarlo

Características clave

Demo en vivo

Cómo se ve en la práctica

agent-trade-kit.replay ▶ listo
0/0

Instalar

Elige tu cliente

~/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
    }
  }
}

Abre Claude Desktop → Settings → Developer → Edit Config. Reinicia después de guardar.

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

Cursor usa el mismo esquema mcpServers que Claude Desktop. La configuración del proyecto prevalece sobre la global.

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

Haz clic en el icono MCP Servers de la barra lateral de Cline y luego en "Edit Configuration".

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

Mismo formato que Claude Desktop. Reinicia Windsurf para aplicar.

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

Continue usa un array de objetos de servidor en lugar de un mapa.

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

Añádelo a context_servers. Zed recarga en caliente al guardar.

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

Un solo comando. Verifica con claude mcp list. Quita con claude mcp remove.

Casos de uso

Usos del mundo real: agent-trade-kit

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

👤 Crypto traders doing due diligence ⏱ ~20 min advanced

Cuándo usarlo: You're considering a position and want charts + indicators + order book snapshot in one pass — without any risk of accidental trades.

Requisitos previos
  • OKX API key (read-only scope) — OKX > API > Create key with read-only permission
Flujo
  1. Start in read-only mode
    Configure agent-trade-kit with --read-only. Confirm trade tools are disabled.✓ Copiado
    → 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.✓ Copiado
    → Indicator stack
  3. Synthesize
    What's the short-term technical picture and is it aligned with funding/OI?✓ Copiado
    → Analysis

Resultado: Informed view without execution risk.

Errores comunes
  • 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

Cuándo usarlo: You want a range-bound grid on a pair you believe will oscillate.

Requisitos previos
  • Funded OKX account — Real money at stake — tread carefully
  • Full API key (trade scope) — OKX > API; DO NOT enable withdrawal
Flujo
  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.✓ Copiado
    → Grid plan with assumptions
  2. Confirm and create
    Before placing: confirm parameters. If I say 'go', create the grid bot; otherwise abort.✓ Copiado
    → Explicit confirmation gate

Resultado: Grid bot running with sized risk.

Errores comunes
  • 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

Cuándo usarlo: Morning check — what do I have open, how is it doing, any risks to my margin?

Flujo
  1. Pull account state
    List all open positions (spot + swap + futures) with unrealized PnL. Show account equity + maintenance margin ratio.✓ Copiado
    → Portfolio snapshot
  2. Risk check
    Which position is at highest liquidation risk? How far from its liq price?✓ Copiado
    → Risk ranked

Resultado: Risk-aware morning check.

Combinaciones

Combínalo con otros MCPs para multiplicar por 10

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.✓ Copiado

Herramientas

Lo que expone este MCP

HerramientaEntradasCuándo llamarCoste
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

Coste y límites

Lo que cuesta ejecutarlo

Cuota de API
OKX API has per-endpoint rate limits
Tokens por llamada
Candles/books can be large — trim by limit
Monetario
Free MCP. Trades incur OKX fees + real money risk.
Consejo
Use --read-only until you've read the tool list and trust your prompt discipline.

Seguridad

Permisos, secretos, alcance

Ámbitos mínimos: API key with NO withdrawal permission, ever
Almacenamiento de credenciales: Local via okx config init — stays on disk
Salida de datos: To OKX API; account data to your LLM provider
No conceder nunca: Withdrawal permission on an API key used with an LLM

Resolución de problemas

Errores comunes y soluciones

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.

Alternativas

agent-trade-kit vs otros

AlternativaCuándo usarlaContrapartida
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

Más

Recursos

📖 Lee el README oficial en GitHub

🐙 Ver issues abiertas

🔍 Ver todos los 400+ servidores MCP y Skills