Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add dex-original/okx-agent-trade-kit --skill okx-cex-tradegit clone --depth 1 https://github.com/dex-original/okx-agent-trade-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-trade)<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-trade"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-trade/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dex-original/okx-agent-trade-kit/okx-cex-trade"><img src="https://agentmods.dev/badge/skills/dex-original/okx-agent-trade-kit/okx-cex-trade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00281 | $0.07645 |
| Opus 5 | $0.00140 | $0.03823 |
| Sonnet 5 | $0.00056 | $0.01529 |
| Haiku 4.5 | $0.00028 | $0.00764 |
Grade A, and why
okx-cex-trade scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- **Network errors**: If commands fail with a connection error, prompt user to check VPN: `curl -I https://www.okx.com` This is a copy
97% identical to okx-cex-trade — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 456 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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 inreferences/<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
- Install
okxCLI:npm install -g @okx_ai/okx-trade-cli - Configure credentials:
okx config init # select site -> follow browser OAuth flow - Test with demo mode (simulated trading, no real funds):
okx --demo spot orders
Security: NEVER accept credentials in chat. Guide users to
okx config initfor setup.
Credential & Profile Check
Run this check before any authenticated command. The auth method is detected during preflight Step 2 and remembered for the session.
Step A — Verify credentials
Run both commands — the apiKey field from okx auth status --json is the auth-binary's internal state and is always false regardless of whether ~/.okx/config.toml has an API-key profile. okx config show --json is the only authoritative source for API-key presence.
okx config show --json # reveals API-key profiles (TOML config)
okx auth status --json # reveals OAuth session state (auth-binary state)
Apply in this order — first match wins:
What ships with it
8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 456 lines · 281 tokens per session scan A 041c43a7801e
okx-cex-trade is a skill published in the GitHub repository dex-original/okx-agent-trade-kit (100 stars, last pushed 3mo ago), licensed MIT. It adds 281 tokens to every session and 7,645 once invoked, about $0.0014 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 97% identical to okx-cex-trade, differing in 6 lines, and is treated as a copy.
Other skills, from other repositories
obai-strategy
Quantitative equity strategy design and backtesting via the OBaI backtest MCP server (http://localhost:8007/mcp). Use when the user wants to build, test, backtest, optimize, refine, repair, or compare a trading strategy, run walk-forward robustness validation, inspect trade logs, or follow up on a backtest job.…
obai-prediction-markets
Polymarket prediction-market analysis via the OBaI prediction-markets MCP server (http://localhost:8009/mcp). Use for market discovery, event odds, YES/NO executable pricing and depth, price history, trade flow, holder concentration, trader leaderboards, wallet analysis, trade decision memos, calibration/longshot-bias…
obai-hub
Central router for OBaI's MCP servers. Trigger this skill whenever the user asks a financial-markets question and the OBaI MCP servers (localhost ports 8001-8010) are available: stock prices, quotes, technicals, fundamentals, valuation, SEC filings, insider trades, earnings, dividends, news catalysts, options chains…
obai
Use the OBaI CLI to answer financial and stock market questions by running obai query commands with --session for conversation memory. Trigger this skill whenever the user asks about stock prices, earnings, fundamentals, options, market movers, portfolio analysis, portfolio risk, screening, dividends, SEC filings…
obai-strategy-routing
Use when the user wants to build, test, backtest, optimize, refine, repair, compare, or follow up on a systematic trading strategy. Covers strategy design, backtesting, optimization, robustness analysis, rule generation, strategy repair/comparison, execution handoff, and strategy job follow-ups. Excludes prediction…
obai-crypto
Coinbase spot crypto research via the OBaI crypto MCP server (http://localhost:8010/mcp). Use for Coinbase spot product lookup, crypto OHLCV candles, order books, latest trades and bid/ask, single-product spot strategy backtests, and Coinbase paper-ledger strategy artifacts. Excludes derivatives, DeFi, on-chain…