okx-cex-bot

Create, amend, stop, and monitor Grid and DCA Martingale bots on OKX.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill okx-cex-bot-wandreandrade2018-maker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-bot
Source: https://github.com/wandreandrade2018-maker/claude-config/tree/main/.agents/skills/okx-cex-bot
Command: npx skills add https://github.com/wandreandrade2018-maker/claude-config --skill okx-cex-bot-wandreandrade2018-maker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli.

What problem does it solve? Managing OKX Grid and DCA (Martingale) trading bots requires navigating complex API parameters, authentication modes, and bot lifecycle states. This Skill provides structured commands and workflows to create, amend, stop, and monitor spot and contract bots without manually crafting API calls. ## Core Features & Use Cases - Grid Bot Management: Create spot, USDT-margined, and coin-margined contract grid bots with configurable price ranges, grid counts, leverage, and TP/SL, then amend or stop them safely. - DCA Bot Management: Launch Spot DCA (现货马丁) and Contract DCA (合约马丁) bots with safety orders, price step multipliers, volume multipliers, and RSI/price trigger strategies. - Monitoring & P&L Tracking: List active or historical bots, inspect details like PnL ratio, liquidation price, and funding fees, and drill into sub-orders and DCA cycles. - Use Case: A trader wants to run a BTC grid bot between $90k and $100k with 10 grids and 1000 USDT. The Skill checks the current price and balance, creates the bot, and confirms it is active. ## Quick Start Ask the assistant to create a BTC spot grid bot on OKX between two prices with a set number of grids and investment amount, then confirm it is running.

Frequently Asked Questions about okx-cex-bot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a grid bot on OKX?

Run okx bot grid create with the instrument ID, algoOrdType (grid or contract_grid), min and max price bounds, grid count, and investment amount. For contract grids you must also specify direction and leverage.

How do I set up a DCA Martingale bot on OKX?

Use okx bot dca create with algoOrdType spot_dca or contract_dca, initial order amount, max safety orders, safety order amount, price step settings, and take-profit ratio. Contract DCA additionally requires leverage.

What is the difference between spot grid and contract grid on OKX?

Spot grid uses algoOrdType grid and invests quote or base currency without leverage. Contract grid uses contract_grid, requires direction (long, short, or neutral) and leverage, and invests margin in USDT or the base coin for coin-margined instruments.

Can I test OKX bots without risking real funds?

Yes, demo mode is supported. OAuth users add the --demo flag, while API key users select a demo profile with --profile. Demo mode simulates trading without real funds.

Why does stopping an OKX grid bot fail with an error?

Stopping fails if the bot is already stopped or if algoOrdType does not match the bot's actual type, causing error 50016. Always list bots first with bot grid orders to get the correct algoId and algoOrdType.

What happens to my OKX bots if I close the CLI?

Nothing happens to the bots. All Grid and DCA bots run natively on OKX servers, so closing the CLI or local process does not affect their operation.