
Bạn nghĩ gì,
agent giao dịch đó.
Giao dịch OKX bằng tiếng Việt, từ tín hiệu đến đặt lệnh
MCP Server + CLI + Skills, mã nguồn mở, khóa luôn trên thiết bị.
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
Hai cách để giao dịch
Một công cụ mạnh mẽ. Chọn cách bạn kết nối.
Máy chủ MCP
Trò chuyện với OKX bằng Claude, ChatGPT hoặc bất kỳ AI nào hỗ trợ MCP. Chỉ cần mô tả điều muốn, AI sẽ xây dựng chiến lược và khớp lệnh.
Xem tài liệuCLI
Giao dịch trực tiếp từ terminal của bạn. Truyền dữ liệu thị trường vào script, lên lịch cron job, và tự động hóa mọi thứ trong dev stack của bạn.
Xem tài liệuPlug-and-Play Skills
Chọn các tính năng bạn cần. Mỗi kỹ năng là một module độc lập. Cài đặt một hoặc tất cả.
npx skills add okx/agent-skillsokx-cex-marketDatos del mercado
Tickers en tiempo real, profundidad del libro de órdenes, gráficos de velas, tasas de financiación, interés abierto e índice de datos. No se requiere una clave de API.
okx-cex-tradeTrading
Spot, futuros, opciones y órdenes avanzadas. Ejecuta, cancela, modifica o realiza órdenes por lotes, incluidas las órdenes OCO, trailing stops y bots de grid.
okx-cex-portfolioPortafolio
Haz un seguimiento de los saldos, posiciones, G&P, historial de facturación, tasas de comisiones y transferencias. Obtén visibilidad total de tu portafolio con una sola habilidad.
Dành cho mọi cấu hình giao dịch.
Mọi loại chiến lược từ bot lưới, lệnh thuật toán, DCA đến arbitrage, được xây dựng bằng một câu.
Kiểm tra tình trạng danh mục đầu tư
"Hiển thị PNL của tôi trong tuần qua và tổng phí đã trả"
Phân tích đầy đủ về PNL, phí và mức độ rủi ro của bạn. Nắm bắt ngay trạng thái danh mục đầu tư của bạn.
Giao dịch theo tin tức
“The SEC just approved a new crypto ETF. Buy 1,000 USD of BTC at market.”
Phản ứng ngay với các sự kiện thị trường. Chỉ cần chia sẻ điều bạn muốn, AI sẽ khớp lệnh trong vài giây. Khổng cần chuyển màn hình.
Giao dịch Spot với TP/SL
“Buy 500 USD of ETH at market. Set take-profit at 3,800 and stop-loss at 3,500.”
Mở một vị thế Spot tích hợp sẵn mức chốt lời và dừng lỗ. Không cần quản lý các lệnh algo riêng biệt. Chỉ cần yêu cầu, AI sẽ lo.
DCA khi giá giảm
"Tôi có 1.000 USDT. Hãy mua BTC mỗi khi giá giảm 2%"
Thiết lập ngân sách và mức giảm giá mục tiêu. AI sẽ tự động chia nhỏ và đặt các lệnh mua, giúp bạn tích lũy crypto mà không cần canh thị trường.
Bot giao dịch lưới
"Thiết lập lưới ETH-USDT từ $3.200 đến $3.800 với 10 lưới"
Tự động nắm bắt biến động trong vùng giá. AI sẽ tính khoảng cách lệnh, phân bổ vốn và đặt toàn bộ lệnh cho bạn.
Quản lý lệnh hàng loạt
“Cancel all my open orders for BTC/USD.”
Xóa lệnh chờ khớp chỉ bằng một câu. AI sẽ truy xuất các lệnh đang chờ của bạn và hủy hàng loạt ngay lập tức. Không còn cần nhấp thủ công vào danh sách.
Bắt đầu chỉ trong 3 phút
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
Câu hỏi thường gặp
Hầu như mọi tính năng bạn có thể thực hiện trên OKX. Kiểm tra giá, giao dịch spot, futures và quyền chọn, thiết lập lệnh nâng cao (như dừng lỗ hoặc trailing stop), quản lý tài khoản và chạy bot lưới. Bạn có thể thực hiện mọi thứ bằng ngôn ngữ tự nhiên hoặc qua dòng lệnh. Truy cập GitHub để xem danh sách đầy đủ các tính năng.
Chúng tôi đã xây dựng bốn lớp bảo vệ để giảm thiểu rủi ro. Bạn có thể bắt đầu với --demo mode để giao dịch bằng vốn mô phỏng, hoặc dùng --read-only mode để chỉ cho phép AI truy vấn dữ liệu. Ngay cả trong live mode, AI cũng sẽ được cảnh báo nghiêm ngặt trước khi thực hiện bất kỳ hành động nào liên quan đến tiền thật. Hãy đọc Safety guide để biết thêm chi tiết. Bạn cần tự xác minh tất cả thông tin liên quan trước khi thực thi giao dịch. AI có thể mắc lỗi và bạn chịu trách nhiệm cho mọi tổn thất phát sinh.
Công cụ này hoạt động với bất kỳ AI client nào hỗ trợ Model Context Protocol (MCP) Bao gồm Claude Desktop, Claude Code, Cursor, và các agent tùy chỉnh được xây dựng bằng MCP SDK. Hiện tại, công cụ chạy cục bộ trên thiết bị của bạn; hỗ trợ lưu trữ trên cloud sẽ sớm được bổ sung. Chúng tôi có thể thêm hoặc loại bỏ một số AI client theo quyết định của mình.
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
Chắc chắn rồi. Mọi thứ đều chạy cục bộ, nhưng vui lòng giữ khóa của bạn an toàn và tránh để lộ cho các AI client. Khóa của bạn được lưu trữ an toàn trên thiết bị (~/.okx/config.toml). tất cả giao dịch đều được ký cục bộ và AI không bao giờ nhìn thấy thông tin xác thực của bạn. Không có dữ liệu nào được gửi đi, ngoại trừ trực tiếp đến OKX. Vì đây là mã nguồn mở, bạn có thể tự kiểm tra mã nguồn trên GitHub. Bạn chịu trách nhiệm bảo mật các khóa API của mình.
Có, nhưng điều này hoàn toàn phụ thuộc vào quyền tài khoản OKX của bạn.
Agent Trade Kit chỉ có thể thực hiện những thao tác mà tài khoản của bạn được phép thực hiện. Nếu tài khoản của bạn được phê duyệt giao dịch futures, hoán đổi perpetual hay options trên OKX, bộ công cụ này cũng có thể giao dịch các sản phẩm đó.
Tuy nhiên, nếu tài khoản hoặc khu vực của bạn hạn chế một số sản phẩm (như phái sinh), những công cụ đó sẽ không giao dịch được. Agent TradeKit không thể bỏ qua quy định tuân thủ của OKX hoặc các hạn chế đối với tài khoản.
Hãy hình dung như một chiếc remote: chỉ hoạt động với những kênh mà bạn đã đăng ký. Nếu bạn không chắc tài khoản của mình có thể làm gì, hãy xem trong phần cài đặt tài khoản OKX.
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.




