
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-USDTETH-USDT $3,487.20 ▲ +1.82% 24h Vol: $9.3B> Show my current positions and P&LCalling swap_get_positions + account_get_balanceBTC-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 84000Calling swap_place_order
Dwa sposoby na handel
Jeden potężny aparat. Wybierz sposób połączania.
Serwer MCP
Rozmawiaj z OKX za pomocą Claude, ChatGPT lub dowolnego AI obsługującego MCP. Po prostu powiedz, czego chcesz — AI stworzy strategię i zrealizuje transakcję.
Wyświetl dokumentyCLI
Handluj bezpośrednio ze swojego terminala. Przesyłaj dane rynkowe do skryptów, planuj zadania cron i automatyzuj wszystko w swoim stosie programistycznym.
Wyświetl dokumentyPlug-and-Play Skills
Wybierz potrzebne możliwości. Każda umiejętność jest samodzielnym modułem. Zainstaluj jedną lub zainstaluj wszystkie.
npx skills add okx/agent-skillsokx-cex-marketTržní data
Tickery v reálném čase, hloubka objednávkové knihy, svíčkové grafy, míry financování, stav otevřených pozic a indexová data. Nevyžaduje se žádný klíč API.
okx-cex-tradeObchodování
Spot, futures, opce a pokročilé objednávky. Provádějte, rušte, měňte nebo dávkujte objednávky, včetně objednávek OCO, stopování cen pro zastavení a gridových botů.
okx-cex-portfolioPortfolio
Sledujte zůstatky, pozice, PnL, historii vyúčtování, výši poplatků a převody. Získejte plnou viditelnost portfolia s jedinou dovedností.
Stworzony dla każdej konfiguracji handlowej
Obsługuje każdy typ strategii, od botów grid, zleceń algo, DCA po arbitraż.
Kontrola kondycji portfela
„Pokaż mój P&L za ostatni tydzień i łączną wartość zapłaconych opłat handlowych”
Uzyskaj pełne zestawienie swojego PnL, opłat i ekspozycji. Dowiedz się dokładnie, jaki jest stan Twojego portfela, natychmiast.
Arbitraż stopy finansowania
„Jeśli stopa finansowania BTC przekroczy 0,1%, otwórz pozycję krótką”
AI monitoruje stopy finansowania i otwiera pozycje, gdy spread jest odpowiedni. Ustawiasz wyzwalacz, a on zajmuje się resztą.
Otwórz pozycję z TP/SL
„Otwórz pozycję długą na 0,1 kontraktu BTC po cenie rynkowej, TP przy 92 000, SL przy 84 000”
Jedno polecenie otwiera pozycję z wbudowaną ochroną. Brak oddzielnych zleceń do zarządzania.
DCA na spadkach
„Mam 1 000 USDT — kupuj BTC za każdym razem, gdy cena spadnie o 2%”
Ustaw budżet i próg spadku. AI rozkłada Twoje zlecenia kupna w czasie, pozwalając na akumulację kryptowalut bez śledzenia rynku.
Bot handlowe siatki
„Skonfiguruj siatkę ETH-USDT między 3200 USD a 3800 USD z 10 poziomami siatki”
Automatycznie przechwytuj zmienność w zakresie. AI oblicza odstępy, określa wielkość inwestycji i składa każde zlecenie.
Automatyczne rebalansowanie
„Rebalansuj mój portfel do 50% BTC, 30% ETH, 20% SOL”
Ustaw docelową alokację. AI oblicza dokładną liczbę potrzebnych transakcji i rebalansuje portfel za jednym razem.
Rozpocznij w 3 minuty
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" "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
FAQ
O wszystkim, co możesz zrobić na OKX. Sprawdzić cenę, handel spot, kontraktami futures i opcjami, skonfigurować zaawansowane zlecenie (takie jak stop loss lub trailing stop), zarządzać swoim kontem i uruchamiać boty grid. Możesz to zrobić za pomocą języka naturalnego lub linii poleceń. Sprawdź GitHub, aby uzyskać pełną listę funkcji.
Zbudowaliśmy cztery warstwy bezpieczeństwa, aby temu zapobiec. Zacznij w trybie demo, aby handlować symulowanymi środkami, lub użyj trybu tylko do odczytu, aby ograniczyć AI wyłącznie do zapytań o dane. Nawet w trybie na żywo AI otrzymuje wyraźne ostrzeżenie przed podjęciem jakichkolwiek działań z prawdziwymi środkami. Przeczytaj nasz przewodnik bezpieczeństwa, aby uzyskać szczegółowe informacje. Przed realizacją należy samodzielnie zweryfikować wszystkie istotne informacje. AI może popełniać błędy, a Ty ponosisz odpowiedzialność za straty.
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.
Tak. Agent TradeKit jest w 100% bezpłatny i open-source zgodnie z licencją MIT. Wszystko, czego potrzebujesz, to konto OKX i klucze API, aby wykonywać transakcje. (Nie potrzebujesz nawet kluczy API do samego pobierania danych rynkowych).
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.




