/ Annuaire / Playground / agent-trade-kit
● Communauté okx ⚡ Instantané

agent-trade-kit

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

Pourquoi l'utiliser

Fonctionnalités clés

Démo en direct

Aperçu en pratique

agent-trade-kit.replay ▶ prêt
0/0

Installer

Choisissez votre client

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

Ouvrez Claude Desktop → Settings → Developer → Edit Config. Redémarrez après avoir enregistré.

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

Cursor utilise le même schéma mcpServers que Claude Desktop. La config projet l'emporte sur la globale.

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

Cliquez sur l'icône MCP Servers dans la barre latérale Cline, puis "Edit Configuration".

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

Même format que Claude Desktop. Redémarrez Windsurf pour appliquer.

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

Continue utilise un tableau d'objets serveur plutôt qu'une map.

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

Ajoutez dans context_servers. Zed recharge à chaud à la sauvegarde.

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

Une seule ligne. Vérifiez avec claude mcp list. Supprimez avec claude mcp remove.

Cas d'usage

Usages concrets : agent-trade-kit

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

👤 Crypto traders doing due diligence ⏱ ~20 min advanced

Quand l'utiliser : You're considering a position and want charts + indicators + order book snapshot in one pass — without any risk of accidental trades.

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

Résultat : Informed view without execution risk.

Pièges
  • 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

Quand l'utiliser : You want a range-bound grid on a pair you believe will oscillate.

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

Résultat : Grid bot running with sized risk.

Pièges
  • 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

Quand l'utiliser : Morning check — what do I have open, how is it doing, any risks to my margin?

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

Résultat : Risk-aware morning check.

Combinaisons

Associez-le à d'autres MCPs pour un effet 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.✓ Copié

Outils

Ce que ce MCP expose

OutilEntréesQuand appelerCoût
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

Coût et limites

Coût d'exécution

Quota d'API
OKX API has per-endpoint rate limits
Tokens par appel
Candles/books can be large — trim by limit
Monétaire
Free MCP. Trades incur OKX fees + real money risk.
Astuce
Use --read-only until you've read the tool list and trust your prompt discipline.

Sécurité

Permissions, secrets, portée

Portées minimales : API key with NO withdrawal permission, ever
Stockage des identifiants : Local via okx config init — stays on disk
Sortie de données : To OKX API; account data to your LLM provider
Ne jamais accorder : Withdrawal permission on an API key used with an LLM

Dépannage

Erreurs courantes et correctifs

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.

Alternatives

agent-trade-kit vs autres

AlternativeQuand l'utiliserCompromis
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

Plus

Ressources

📖 Lire le README officiel sur GitHub

🐙 Voir les issues ouvertes

🔍 Parcourir les 400+ serveurs MCP et Skills