
Jika Anda dapat memikirkannya,
agen Anda dapat mentransaksikannya.
Trading di OKX dengan bahasa alami dari sinyal market hingga eksekusi. MCP Server + CLI + Keahlian, sumber terbuka, kunci tidak pernah keluar dari perangkat Anda.
npm install -g okx-trade-mcp okx-trade-cli$ okx market ticker BTC-USDTBTC-USDT $87,432.50 ▲ +2.34% 24h Vol: $18.7B> Buy 500 USDT of BTC at market, take-profit at 92000, stop-loss at 84000Calling spot_place_orderBUY BTC-USDT | 500 USDT | Market | TP: $92,000 | SL: $84,000✓ Order filled — avgPx: $87,432.50, ordId: 5678901234> Show my BTC balance and recent tradesCalling account_get_balance + spot_get_fills
Dua Cara Untuk Trading
Satu mesin canggih. Pilih cara Anda terhubung.
Server MCP
Bicara dengan OKX menggunakan Claude, ChatGPT, atau AI mana pun yang mendukung MCP. Cukup katakan apa yang Anda inginkan—AI membangun strategi dan menjalankan trade.
Lihat DokumenCLI
Trading langsung dari terminal Anda. Pipe data pasar ke dalam skrip, jadwalkan cron jobs, dan otomatiskan apa pun di dev stack Anda.
Lihat DokumenKeahlian Siap Pakai
Pilih kemampuan yang Anda butuhkan. Setiap keterampilan adalah modul yang mandiri. Instal satu, atau instal semuanya.
npx skills add okx/agent-skillsokx-cex-marketMarket data
Real-time tickers, orderbook depth, candlesticks, funding rates, open interest, and index data. No API key required.
okx-cex-tradeTrading
Spot, futures, options, and advanced orders. Execute, cancel, amend, or batch orders, including OCO, trailing stops, and grid bots.
okx-cex-portfolioPortfolio
Track balances, positions, PnL, billing history, fee rates, and transfers. Get full portfolio visibility with a single skill.
Dibuat Untuk Setiap Pengaturan Trading
Setiap jenis strategi dari bot grid, order algo, DCA, hingga arbitrase, dibangun dengan satu frasa.
Pemeriksaan Kesehatan Portofolio
"Tampilkan P&L saya untuk pekan lalu dan total biaya yang dibayarkan"
Dapatkan perincian lengkap tentang PnL, biaya, dan eksposur Anda. Ketahui posisi portofolio Anda secara langsung.
News-driven trading
“The SEC just approved a new crypto ETF. Buy 1,000 USD of BTC at market.”
React to market events instantly. Just say what you want to do, and the AI executes your trade in seconds. No screen-switching required.
Spot trading with TP/SL
“Buy 500 USD of ETH at market. Set take-profit at 3,800 and stop-loss at 3,500.”
Open a spot position with built-in take-profit and stop-loss. No need to manage separate algo orders—just one intent, one action.
DCA Saat Dip
"Saya memiliki 1.000 USDT — beli BTC setiap kali turun 2%"
Tetapkan anggaran dan ambang batas dip Anda. AI menyebarkan order beli Anda secara bertahap, sehingga Anda dapat mengakumulasi kripto tanpa memantau pasar.
Bot Trading Grid
"Atur grid ETH-USDT antara $3.200 dan $3.800 dengan 10 grid"
Tangkap volatilitas dalam rentang secara otomatis. AI menghitung jarak, menentukan ukuran investasi Anda, dan menempatkan setiap order.
Batch order management
“Cancel all my open orders for BTC/USD.”
Clear your open orders in a single sentence. The AI fetches your pending orders and batch-cancels them instantly. No more manually clicking through lists.
Mulai dalam 3 Menit
npm install -g okx-trade-mcp okx-trade-cli
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
okx-trade-mcp setup --client claude-desktop # or: cursor / vscode / claude-code # MCP — natural language in Claude Desktop / Cursor "Show my account balance" "Buy 500 USDT of BTC at market, stop-loss at 84000"
# CLI — terminal + script integration okx market ticker BTC-USDT okx market candles ETH-USDT --bar 1H --limit 200 --json
FAQ
Tentang semua hal yang dapat Anda lakukan di OKX. Memeriksa harga, trading spot, future, dan option, mengatur order lanjutan (seperti SL atau trailing stop), mengelola akun Anda, dan menjalankan bot grid. Anda dapat melakukan semuanya menggunakan bahasa alami atau baris perintah Anda. Lihat GitHub untuk daftar fitur lengkapnya.
Kami membangun empat lapisan keamanan untuk mencegah hal tersebut. Mulailah dalam --mode demo untuk trading dengan dana simulasi, atau gunakan --mode hanya baca untuk membatasi AI ke kueri data. Bahkan dalam mode live, AI diperingatkan secara ketat sebelum mengambil tindakan apa pun dengan dana nyata. Baca Panduan Keamanan kami untuk detail selengkapnya. Anda perlu memverifikasi semua informasi yang relevan secara independen sebelum dijalankan. AI dapat membuat kesalahan, dan Anda bertanggung jawab atas kerugian yang timbul.
Itu dapat digunakan dengan klien AI apa pun yang mendukung Model Context Protocol (MCP). Ini meliputi Claude Desktop, Claude Code, Cursor, dan agen khusus yang dibangun dengan MCP SDK. Saat ini, fitur ini berjalan secara lokal di perangkat Anda, dengan dukungan cloud yang akan segera hadir. Kami dapat menambahkan atau menghapus klien AI tertentu atas kebijakan kami sendiri.
Safety is a shared responsibility — here’s what you do, and what OKX does for you.
• What you should do:
1. Create a dedicated sub-account for AI with its own API Key — never mix with your main account
2. Only fund the AI account with what you’re willing to allocate — keep it separate from your main balance
3. Never paste your API Key directly into an AI conversation
4. Set trading permissions to require approval — every trade needs your confirmation
5. Start with demo mode to test your setup before going live
6. Never share sensitive personal information with the Agent
7. Do not install or enable unofficial Skills — this could lead to asset loss
• What OKX does for you:
1. Keys are stored locally only — the AI can never access them
2. Read-only mode: AI can view data but cannot execute any actions
3. Module-level permission control: precisely decide which capabilities AI can use
4. Live and demo trading are fully isolated — testing never touches real funds
5. Rate limiting: abnormal commands are automatically blocked
6. Fully open source — audit every line of code yourself
Tentu saja. Semuanya berjalan secara lokal, tetapi harap jaga keamanan kunci Anda dan jangan menampakkannya pada klien AI. Kunci Anda disimpan dengan aman di perangkat Anda (~/.okx/config.toml), semua transaksi ditandatangani secara lokal, dan AI tidak pernah melihat kredensial Anda. Data tidak pernah dikirim ke mana pun kecuali langsung ke OKX. Karena sumbernya terbuka, Anda dapat mengaudit kodenya secara mandiri di GitHub. Anda bertanggung jawab untuk menjaga keamanan kunci API Anda.
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.




