okx-cex-trade

Place, manage, and cancel orders on OKX CEX via CLI.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/erongcao/ai-model-team --skill okx-cex-trade-erongcao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-trade
Source: https://github.com/erongcao/ai-model-team/tree/main/skills/okx-agent-trade-kit/skills/okx-cex-trade
Command: npx skills add https://github.com/erongcao/ai-model-team --skill okx-cex-trade-erongcao

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the process of trading on OKX CEX, allowing users to place, manage, and cancel orders with ease, as well as view and monitor their trading activities.

Core Features & Use Cases

  • Order Placement & Management: Place various types of orders (market, limit, stop, conditional) and manage them effectively.
  • Position Management: Open, close, and modify positions on OKX CEX, including spot, swap, futures, and options.
  • Market Data: Retrieve real-time market data and historical fills for informed decision-making.
  • Use Case: A user wants to execute a market order to buy Bitcoin on OKX CEX. The skill will guide them through the process, including verifying their credentials and confirming the order details.

Quick Start

Use the okx-cex-trade skill to place a market order for 1 BTC with a leverage of 10x on OKX CEX.

Frequently Asked Questions about okx-cex-trade

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

FAQPage Schema
How do I automate spot and futures order placement on OKX CEX?

You can automate OKX CEX trading operations by using this Skill to place, manage, and cancel market, limit, and conditional orders. It supports spot, swap, futures, and options trading via the OKX trade CLI.

Can I manage open positions and cancel existing orders on OKX CEX programmatically?

Yes, you can programmatically manage and cancel OKX CEX orders and positions. The Skill handles opening, closing, and modifying positions across spot, swap, futures, and options to optimize trading workflows.

What do I need to set up before executing trades on OKX CEX?

Before executing OKX CEX trades, you need valid API credentials and the @okx_ai/okx-trade-cli dependency installed. The Skill guides users through credential verification to authorize order placement.

Does this approach support retrieving real-time market data for crypto trading?

Yes, this crypto trading approach supports retrieving real-time market data and historical fills. It fetches OKX market data to facilitate informed decision-making before placing or managing orders.

What is the best way to execute a leveraged Bitcoin market order on OKX CEX?

The best way to execute a leveraged Bitcoin market order on OKX CEX is using this Skill, which guides you through verifying credentials and confirming order details like 10x leverage for 1 BTC.

What are the limitations of using the OKX trade CLI for order management?

A limitation of using the OKX trade CLI for order management is its strict dependency on API credentials and the @okx_ai/okx-trade-cli package, requiring proper environment setup to avoid order execution failures.