okx avatar

Okx Cex Trade

If you're building a trading bot or automation that needs to execute on OKX, this handles the order lifecycle across spot, perps, futures, options, and their newer event contracts (binary outcome prediction markets). It wraps the OKX trade CLI with proper credential handling for both OAuth and API key flows, demo/live mode switching, and the tricky bits like contract face value lookup before sizing derivative orders. The documentation is thorough about not guessing USDT amounts (notional vs margin cost) and routing correctly between the four OKX skills. Worth noting it won't fetch prices or check your balance, those live in separate skills, so you'll typically chain this with okx-cex-market or okx-cex-portfolio for real workflows.

skills.sh installs
10.6K
GitHub stars
200
last updated
Aug 21, 2026

Install

$ npx -y skills add okx/agent-skills --skill okx-cex-trade --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/okx/agent-skills
Categories
Backend & APIs, AI & Agent Building, Sales & Marketing, Finance & Trading

More from okx/agent-skills

All 11
1deeflect avatarmiesdeeflect/miesUse this skill when creating, redesigning, critiquing, reducing, polishing, hardening, or making design decisions for a user-facing interface, brand surface, pr10.5Kskills.sh installs
2langgenius avatarfrontend-code-reviewlanggenius/difyUse only when the user explicitly requests a review or audit of frontend code under `web/` or `packages/dify-ui/`. Supports pending-change, file-focused, and pa10.1Kskills.sh installs
3google avataragent-platform-deploygoogle/skillsDeploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up resourc9.8Kskills.sh installs
4pskoett avatarself-improvementpskoett/self-improving-agentCaptures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude 9.7Kskills.sh installs
5conardli avatarweb-design-engineerconardli/garden-skillsBuild or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups,9.6Kskills.sh installs
6nomadamas avatarintercity-bus-bookingnomadamas/k-skillSearch and assist Korean 시외버스/Tmoney bookings using official HTTP/API-first flows; use for 시외버스 예매, 시간표, 좌석/요금 조회, and official checkout-entry handoff. 돌쇠에서는 공식9.6Kskills.sh installs