/ Verzeichnis / Playground / agent-trade-kit
● Community okx ⚡ Sofort

agent-trade-kit

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

Warum nutzen

Hauptfunktionen

Live-Demo

In der Praxis

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

Installieren

Wählen Sie Ihren 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
    }
  }
}

Öffne Claude Desktop → Settings → Developer → Edit Config. Nach dem Speichern neu starten.

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

Cursor nutzt das gleiche mcpServers-Schema wie Claude Desktop. Projektkonfiguration schlägt die globale.

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

Klicken Sie auf das MCP-Servers-Symbol in der Cline-Seitenleiste, dann "Edit Configuration".

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

Gleiche Struktur wie Claude Desktop. Windsurf neu starten zum Übernehmen.

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

Continue nutzt ein Array von Serverobjekten statt einer Map.

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

In context_servers hinzufügen. Zed lädt beim Speichern neu.

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

Einzeiler. Prüfen mit claude mcp list. Entfernen mit claude mcp remove.

Anwendungsfälle

Praxisnahe Nutzung: agent-trade-kit

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

👤 Crypto traders doing due diligence ⏱ ~20 min advanced

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

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

Ergebnis: Informed view without execution risk.

Fallstricke
  • 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

Wann einsetzen: You want a range-bound grid on a pair you believe will oscillate.

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

Ergebnis: Grid bot running with sized risk.

Fallstricke
  • 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

Wann einsetzen: Morning check — what do I have open, how is it doing, any risks to my margin?

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

Ergebnis: Risk-aware morning check.

Kombinationen

Mit anderen MCPs für 10-fache Wirkung

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

Werkzeuge

Was dieses MCP bereitstellt

WerkzeugEingabenWann aufrufenKosten
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

Kosten & Limits

Was der Betrieb kostet

API-Kontingent
OKX API has per-endpoint rate limits
Tokens pro Aufruf
Candles/books can be large — trim by limit
Kosten in €
Free MCP. Trades incur OKX fees + real money risk.
Tipp
Use --read-only until you've read the tool list and trust your prompt discipline.

Sicherheit

Rechte, Secrets, Reichweite

Minimale Scopes: API key with NO withdrawal permission, ever
Credential-Speicherung: Local via okx config init — stays on disk
Datenabfluss: To OKX API; account data to your LLM provider
Niemals gewähren: Withdrawal permission on an API key used with an LLM

Fehlerbehebung

Häufige Fehler und Lösungen

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.

Alternativen

agent-trade-kit vs. andere

AlternativeWann stattdessenKompromiss
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

Mehr

Ressourcen

📖 Offizielle README auf GitHub lesen

🐙 Offene Issues ansehen

🔍 Alle 400+ MCP-Server und Skills durchsuchen