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-USDT
BTC-USDT $87,432.50 ▲ +2.34% 24h Vol: $18.7B
> Buy 500 USDT of BTC at market, take-profit at 92000, stop-loss at 84000
Calling spot_place_order
BUY 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 trades
Calling account_get_balance + spot_get_fills

Tương thích với mọi MCP client

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.

#AI-Native#Claude/GPT#Dữ liệu thị trường
Xem tài liệu

CLI

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.

#Terminal#Pipe Shell#Cron Job
Xem tài liệu

Plug-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-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
Duyệt tất cả kỹ năng trên GitHub

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.

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

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.

Bắt đầu chỉ trong 3 phút

01 Cài đặt
npm install -g okx-trade-mcp okx-trade-cli
02 Khởi tạo
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 Giao dịch
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
Không cần API Key để truy cập dữ liệu thị trường — chỉ cần dùng --modules market để truy cập mà không cần cấu hình. Bạn có thể tạo API Key trên OKX (API Key cho live và demo được quản lý riêng).

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.

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.