okx-cex-trade

Place, cancel, and amend trading orders on the OKX CEX platform.

160|26|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/okx/agent-skills --skill okx-cex-trade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-cex-trade
Source: https://github.com/okx/agent-skills/tree/main/skills/okx-cex-trade
Command: npx skills add https://github.com/okx/agent-skills --skill okx-cex-trade

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 empowers users to manage their trading activities on the OKX CEX platform, from placing simple market orders to executing complex options strategies and managing conditional orders like take-profit and stop-loss.

Core Features & Use Cases

  • Order Management: Place, cancel, and amend spot, perpetual swap, delivery futures, and options orders.
  • Conditional Orders: Set take-profit, stop-loss, and trailing stop orders for risk management.
  • Options Trading: Access option chains, view Greeks, and trade calls and puts.
  • Leverage & Position Control: Adjust leverage and close positions efficiently.
  • Use Case: A user wants to buy 0.01 BTC at a specific price, set a take-profit at $100,000, and a stop-loss at $88,000. This Skill can execute this complex order with attached conditional orders.

Quick Start

Use the okx-cex-trade skill to place a market buy order for 0.01 BTC on the spot market.

Frequently Asked Questions about okx-cex-trade

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

FAQPage Schema
How do I place a spot market order on OKX using an API?

To place a spot market order on OKX, you need to execute a trade command through the OKX CLI tool with valid API credentials. This Skill facilitates authenticated order placement for spot markets and other instruments.

Can I manage take-profit and stop-loss orders for futures on OKX?

Yes, you can manage take-profit, stop-loss, and trailing stop conditional orders for futures on OKX. The Skill supports attaching these risk management orders directly when placing perpetual swap or delivery futures orders.

Does OKX CEX trading support options contracts and Greeks analysis?

OKX CEX trading supports options contracts, allowing you to access option chains, view Greeks, and trade calls and puts. You can execute these options strategies directly through the OKX CLI tool interface.

What do I need to adjust leverage and manage positions on OKX?

To adjust leverage and manage positions on OKX, you need the OKX CLI tool and valid API credentials. This setup allows you to authenticate operations and efficiently control leverage or close active positions.

How do I amend or cancel an existing perpetual swap order on OKX?

You can amend or cancel an existing perpetual swap order on OKX by sending the corresponding modification or cancellation request through the OKX CLI tool. This requires authenticated API credentials to execute successfully.