If you can think it,
your agent can trade it.

Trade on OKX with natural language, from market signals to execution. MCP Server + CLI + Skills, open source, keys never leave your device.

npm install -g okx-trade-mcp okx-trade-cli
$ okx market ticker ETH-USDT
ETH-USDT $3,487.20 ▲ +1.82% 24h Vol: $9.3B
> Show my current positions and P&L
Calling swap_get_positions + account_get_balance
BTC-USDT-SWAP Long 0.1 Entry: $87,432 uPnL: +$128.50 (+0.15%)
Available balance: 8,240.32 USDT
> Long BTC-USDT-SWAP 0.1 at market, TP at 92000, SL at 84000
Calling swap_place_order

Werkt met elke MCP-client

Twee manieren om te handelen

Eén krachtige motor. Kies hoe je koppelt.

MCP-server

Praat met OKX via Claude, ChatGPT of een AI die MCP ondersteunt. Je hoeft alleen maar te zeggen wat je wilt - de AI bouwt de strategie en voert de transactie uit.

#AI-Native#Claude/GPT#Marktgegevens
Documenten bekijken

CLI

Handel rechtstreeks vanuit je terminal. Leid marktgegevens naar scripts, plan cronjobs en automatiseer alles in je ontwikkelstack.

#Terminal#Shell Pipes#Cron Jobs
Documenten bekijken

Plug-and-Play Skills

Kies de mogelijkheden die je nodig hebt. Elke skill is een zelfstandige module. Installeer er één of installeer ze allemaal.

npx skills add okx/agent-skills
okx-cex-market

行情數據

實時獲取最新行情、盤口深度、K線走勢、資金費率、持倉量及指數數據。無需 API Key 即可調用。

#Public#Real-time#No Auth
okx-cex-trade

交易

支持現貨、合約、期權及算法訂單。輕鬆實現一鍵下單、撤單、改單及批量操作,更支持 OCO、移動止盈止損及網格策略。

#Spot#Futures#Options#Algo
okx-cex-portfolio

資產組合

追蹤賬戶餘額、當前持倉、收益明細、賬單歷史、費率等級與資金劃轉。只需一個 Skill,全盤資產盡在掌握。

#Balance#Positions#P&L#Fees
Blader door alle skills op GitHub

Ontworpen voor elke trading-setup

Elk type strategie, van gridbots, algo-orders en DCA, tot arbitrage, gebouwd met één zin.

Gezondheidscontrole portfolio

Toon mijn P&L van de afgelopen week en de totale betaalde vergoedingen

Krijg een volledig overzicht van je PnL, kosten en blootstelling. Weet meteen precies hoe je portfolio ervoor staat.

Financieringspercentage arbitrage

"Als het financieringspercentage van BTC hoger is dan 0,1%, open een short positie"

De AI houdt de financieringspercentages in de gaten en opent posities wanneer de spread juist is. Jij stelt de trigger in en de AI regelt de rest.

Openstaande posities met TP/SL

'long BTC 0,1 contract op de markt, TP op 92.000, SL op 84.000'

Eén opdracht opent je positie met ingebouwde bescherming. Geen aparte orders om te beheren.

DCA tijdens dips

"Ik heb 1.000 USDT — koop BTC elke keer dat het 2% daalt"

Stel je budget en dipdrempel in. De AI spreidt je kooporders, zodat je crypto kunt opbouwen zonder de markt voortdurend te volgen.

Grid-handelsbot

"Stel een ETH-USDT grid in tussen $ 3.200 en $ 3.800 met 10 grids"

Vang automatisch volatiliteit binnen een bandbreedte. De AI berekent de afstand tussen orders, bepaalt de omvang van je belegging en plaatst elke order.

Auto-herbalancering

Herbalancer mijn portfolio naar 50% BTC, 30% ETH, 20% SOL

Stel je doeltoewijzing in. De AI berekent de exacte handelstransacties die nodig zijn en herbalanceert je portfolio in één keer.

Ga binnen 3 minuten aan de slag

01 Instaleren
npm install -g okx-trade-mcp okx-trade-cli
02 Initialiseren
mkdir -p ~/.okx && vim ~/.okx/config.toml

# ~/.okx/config.toml
default_profile = "demo"

[profiles.demo]
site = "global"
api_key = "your-demo-api-key"
secret_key = "your-demo-secret-key"
passphrase = "your-demo-passphrase"
demo = true
03 Handelen
okx-trade-mcp setup --client claude-desktop  # or: cursor / vscode / claude-code

# MCP — natural language in Claude Desktop / Cursor
"Show my account balance"
"Long BTC 0.1 SWAP at market with SL at 85000"
# CLI — terminal + script integration
okx market ticker BTC-USDT
okx market candles ETH-USDT --bar 1H --limit 200 --json
Er is geen API-sleutel nodig voor marktgegevens - gebruik --module markt voor toegang zonder configuratie. Maak API-sleutels aan bij OKX (live- en demosleutels worden apart beheerd).

FAQ

Bijna alles wat je op OKX kunt doen. Prijzen controleren, handelen op de spot-, futures- en optiemarkt, geavanceerde orders instellen (zoals stop-loss of trailing stop), je account beheren en gridbots draaien. Je kunt dit allemaal doen in natuurlijke taal of via de command line. Ga naar GitHub voor de volledige lijst met functies.

Om dat te voorkomen hebben we vier beveiligingslagen ontwikkeld. Begin in de modus '--demo' om transacties te doen met gesimuleerd geld, of gebruik de modus '--read-only' om de AI te beperken tot gegevensvragen. Zelfs in de live modus wordt de AI ten strengste gewaarschuwd voordat je actie onderneemt met echt geld. Lees onze veiligheidshandleiding voor meer informatie. Je moet alle relevante informatie onafhankelijk verifiëren voordat je een AI-agent uitvoert. AI kan fouten maken. Je blijft zelf verantwoordelijk voor verliezen.

It works with any AI client that supports the Model Context Protocol (MCP). This includes Claude Desktop, Claude Code, Cursor, and custom agents built with the MCP SDK. Right now, it runs locally on your device, with cloud-hosted support coming soon. We may add or remove certain AI clients at our discretion.

Ja. Agent TradeKit is 100% gratis en open-source onder de MIT-licentie. Het enige wat je nodig hebt is een OKX-account en API-sleutels om transacties uit te voeren. (je hebt geen API-sleutels nodig om alleen marktgegevens op te halen).

Absolutely. Everything runs locally, but please keep your key secure and avoid exposing it to AI clients. Your keys are securely stored on your device (~/.okx/config.toml), all transactions are signed locally, and the AI never sees your credentials. No data is ever sent anywhere except directly to OKX. Since it’s open-source, you can audit the code yourself on GitHub. You are responsible for keeping your API keys safe.

Yes, but it depends entirely on your OKX account permissions.
Agent Trade Kit can only execute what your account is already authorized to do. If your account is approved to trade futures, perpetual swaps, or options on OKX, the toolkit can trade them too.
However, if your account type or region restricts certain products (like derivatives), those tools won’t work. Agent TradeKit cannot bypass OKX’s compliance or account restrictions.
Think of it like a remote control: it only works for the channels you’re already subscribed to. If you’re unsure what your account can access, check your OKX account settings.

The Agent Trade Kit is a collection of servers and toolkits intended to facilitate automated or AI-assisted trading, and does not constitute financial, investment, legal, or tax advice. AI-generated actions may trigger real trades and result in significant losses due to model errors, hallucinations, inaccurate or outdated information, latency, market volatility, slippage, liquidity constraints, technical failures, incorrect parameters, or service disruptions. The Service is provided “as is” and “as available,” with no warranties regarding accuracy, completeness, execution reliability, or continuous availability. The Kit may rely on third-party large language models (LLMs) that are not owned, operated, controlled, verified, or endorsed by OKX; OKX disclaims all responsibility and liability for any third-party LLM services or outputs, and you use them entirely at your own risk. You are solely responsible for independently verifying all information, configuring and supervising automated strategies, safeguarding API credentials, applying least-privilege permissions (including avoiding withdrawal permissions unless strictly necessary), binding trusted IPs, and testing with small amounts before scaling. To the maximum extent permitted by law, OKX disclaims liability for any direct or indirect losses arising from use of the AgentTrade Kit, and you agree to indemnify and hold OKX harmless from any claims related to your use, trading activities, or reliance on AI-generated outputs.