okx-cex-trade
okx cex trade
What it does
- config show --json has any profile with a non-empty apikey field → API Key mode. Proceed to Step B.
- No API-key profile AND auth status --json returns "status":"loggedin" → OAuth mode. Proceed to Step B.
- No API-key profile AND "status":"pending" — login is in progress, wait for it to complete.
- No API-key profile AND "status":"notloggedin" — stop all operations, load okx-cex-auth skill and follow login steps, wait for completion.
- Found → reuse it, inform user
- Not found → ask: "Live (实盘) or Demo (模拟盘)?" — wait for answer before proceeding
- API Key users: run okx config show --json to discover available profile names and their demo settings. Use --profile <name> to select the correct one.
Requirements & configuration
- config show --json has any profile with a non-empty apikey field → API Key mode. Proceed to Step B.
- How to apply the mode depends on auth method (detected in Step A):
- | API Key | --profile <live-profile> | --profile <demo-profile> |
- API Key users: run okx config show --json to discover available profile names and their demo settings. Use --profile <name> to select the correct one.
- | Mode | Funds | API Key param | OAuth param |
Configuration: FMQRZ
Derived from the skill's own SKILL.md documentation · extracted 2026-07-23
okx-cex-trade FAQ
What does the okx-cex-trade skill do?
Use when the user asks to 'buy BTC', 'sell ETH', 'place a limit order', 'place a market order', 'cancel my order', 'amend my order', 'long BTC perp', 'short ETH swap', 'open a position', 'close a position', 'set take profit', 'limit take profit', 'immediate TP', 'set stop loss', 'self-trade prevention', 'stpMode', 'auto-cancel on close', 'trailing stop', 'pending order', 'chase order', 'iceberg', 'TWAP', 'split order', 'large order', 'set leverage', 'check my orders', 'fill history', 'buy a call', 'sell a put', 'option chain', 'implied volatility', 'IV', 'Greeks', 'delta', 'gamma', 'event contract', 'buy Yes', 'buy No', 'buy Up', 'buy Down', 'prediction market', or any request to place, cancel, or amend spot, swap, futures, options, or event contract orders on OKX CEX. Covers conditional (TP/SL/trailing) algo orders. Requires API credentials. Do NOT use for market data (okx-cex-market), account balance (okx-cex-portfolio), or bots (okx-cex-bot). config show --json has any profile with a non-empty apikey field → API Key mode. Proceed to Step B. No API-key profile AND auth status --json returns "status":"loggedin" → OAuth mode. Proceed to Step B.
What does okx-cex-trade require?
config show --json has any profile with a non-empty apikey field → API Key mode. Proceed to Step B. How to apply the mode depends on auth method (detected in Step A): | API Key | --profile <live-profile> | --profile <demo-profile> | API Key users: run okx config show --json to discover available profile names and their demo settings. Use --profile <name> to select the correct one. | Mode | Funds | API Key param | OAuth param | Configuration keys: FMQRZ.
How do I install okx-cex-trade?
Run: npx -y skills add https://github.com/okx/agent-skills --skill okx-cex-trade --agent claude-code — the source lives at github.com/okx/agent-skills.
Maintain okx-cex-trade?
Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.
[](https://getagentictools.com/skills/okx-agent-skills-okx-cex-trade?ref=badge) npx agentictools info skills/okx-agent-skills-okx-cex-trade The second line is the CLI lookup for this page — handy in READMEs and docs.