okx-cex-trade

Installation
Summary

Spot, perpetual swap, delivery futures, and options order management on OKX exchange.

  • Place, cancel, amend, and monitor orders across four asset classes: spot, perpetual swap, delivery futures, and options (calls/puts with Greeks and IV data)
  • Set take-profit, stop-loss, and trailing stops; manage leverage and positions; query option chains and implied volatility
  • Requires OKX API credentials configured locally; supports both live (实盘) and demo (模拟盘) trading modes via --profile flag
  • Handles contract size conversion from USDT amounts for derivatives using mark price and contract value; inverse contracts settled in base currency with explicit settlement warnings
SKILL.md

OKX CEX Trading CLI

Spot, perpetual swap, delivery futures, options, and event contract order management on OKX exchange. Place, cancel, amend, and monitor orders; query option chains and Greeks; trade binary outcome event contracts (Yes/No, Up/Down); set take-profit/stop-loss and trailing stops; manage leverage and positions. Requires API credentials.

CLI vs MCP tool names — Subcommands use spaces (okx swap algo place, okx bot grid create), not hyphens. Do NOT convert an MCP tool identifier (swap_place_algo_order) into a hyphen-joined CLI command (okx swap place-algo) — that will be rejected with "Unknown command". Per-module mapping tables live in references/<module>-commands.md.

Preflight

Before running any command, follow ../_shared/preflight.md. Use metadata.version from this file's frontmatter as the reference for Step 2.

Prerequisites

  1. Install okx CLI:
    npm install -g @okx_ai/okx-trade-cli
    
  2. Configure credentials:
Related skills

More from okx/agent-skills

Installs
5.7K
GitHub Stars
115
First Seen
Mar 8, 2026