okx-cex-bot

Manage Grid and DCA bots on OKX exchange via command-line interface.

100|2.3k|Updated May 14, 2026
One-click install
npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-bot-dex-original
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-bot
Source: https://github.com/dex-original/okx-agent-trade-kit/tree/main/skills/okx-cex-bot
Command: npx skills add https://github.com/dex-original/okx-agent-trade-kit --skill okx-cex-bot-dex-original

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of Grid and DCA bots on OKX, automating the creation, amendment, monitoring, and adjustment of bots without the need for a local process.

Core Features & Use Cases

  • Grid Bot Management: Create, amend, stop, list, and monitor grid bots for spot and contract trading.
  • DCA Bot Management: Create, stop, list, and monitor DCA (Martingale) bots for spot and contract trading.
  • Use Case: A user can easily start a grid bot for spot trading with specific parameters, or a DCA bot for contract trading with leverage and take-profit ratios.

Quick Start

To create a grid bot for spot trading on OKX, use the following command: okx bot grid create --instId BTC-USDT --algoOrdType grid --minPx 90000 --maxPx 100000 --gridNum 10 --quoteSz 1000.

Frequently Asked Questions about okx-cex-bot

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

FAQPage Schema
How do I automate OKX grid bot management without running a local process?

Automating OKX grid bot management without a local process is achieved by using command-line instructions to create, amend, stop, and monitor spot or contract grid bots directly through the OKX Trade CLI.

How do I create a DCA bot for OKX contract trading with leverage?

Creating a DCA bot for OKX contract trading involves using the OKX Trade CLI to configure Martingale parameters, applying leverage and take-profit ratios for contract execution without a local process.

Can I adjust and monitor existing spot trading bots on OKX programmatically?

Yes, you can programmatically adjust and monitor existing spot trading bots on OKX by executing amendment and monitoring commands via the OKX Trade CLI dependency.

Do I need API credentials to manage OKX trading bots using this CLI method?

Yes, providing OKX API credentials is required to authenticate and manage trading automation operations through the OKX Trade CLI for both spot and contract bot activities.

What is the best way to configure a spot grid bot with specific price ranges on OKX?

The best way to configure a spot grid bot with specific price ranges on OKX is executing a CLI command that defines the instrument ID, minimum and maximum prices, grid number, and quote size.

Are there limitations to OKX trading automation when using command-line bot management?

Limitations of command-line OKX trading automation include strict dependency on the OKX Trade CLI and API credentials, restricting bot management to supported spot and contract grid and DCA operations.