← 返回 Skills 市场
bevanding

Cex Trader

作者 bevanding · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ⚠ suspicious
98
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install cex-trader
功能描述
Unified CEX trading capability layer for AI agents. Supports OKX and Binance spot and futures trading, account balance queries, order management, position qu...
使用说明 (SKILL.md)

cex-trader

v2.0.2 · Unified CEX Trading Capability Layer for AI Agents

⚠️ Risk Warning: Futures trading involves high leverage and may result in significant losses. Only use funds you can afford to lose.

Overview

cex-trader is a unified CEX trading MCP server that enables AI agents to trade on centralized exchanges (OKX, Binance) through a consistent interface.

Supported Exchanges

  • OKX — Spot + Futures (MVP-α, production ready)
  • Binance — Spot + Futures (MVP-β, production ready)

MCP Tools (12 total)

Setup Tools

Tool Description
cex-setup-check Check if API credentials are configured
cex-setup-save Save API credentials for OKX or Binance
cex-setup-verify Verify credentials via a test API call

Spot Tools

Tool Description
cex-spot-place-order Place spot market or limit order
cex-spot-cancel-order Cancel spot order
cex-account-get-balance Query account balance

Futures Tools

Tool Description
cex-futures-place-order Place futures order (action semantics or native params)
cex-futures-cancel-order Cancel futures order
cex-futures-get-positions Query open positions
cex-futures-set-leverage Set leverage (1-20x)
cex-futures-close-position Close position
cex-account-get-info Get account config and summary

Changelog

v2.0.2 (2026-04-14)

  • Fix: Corrected MCP server URL from mcp.antalpha.com/cex-trader to mcp-skills.ai.antalpha.com/mcp in mcp.url and MCP_SERVER_URL description

v2.0.1 (2026-04-14)

  • Docs: Declared required env vars (CEX_OKX_, CEX_BINANCE_, MCP_SERVER_URL) in SKILL.md metadata
  • Docs: Clarified credential transmission path (env vars → MCP server; ~/.trader/config.toml stores risk params only)
  • Docs: Aligned MCP_SERVER_URL default (localhost:3000) with hosted URL in SKILL.md

v2.0.0 (2026-04-13)

  • Added: Full Binance exchange support (Spot + Futures, MVP-β)
  • Added: ExchangeRouter, BinanceClientService (HMAC-SHA256 signing)
  • Added: cex-setup-check / cex-setup-save / cex-setup-verify onboarding tools
  • Fixed: BINANCE_ERROR_MAP error code mappings
  • Fixed: closePosition dual-side mode handling
  • All original tools now accept exchange parameter (defaults to okx, backward-compatible)

v1.0.0 (2026-04-10)

  • Initial release: OKX spot + futures trading (MVP-α)
  • 9 MCP tools, action semantics, idempotency, risk controls
安全使用建议
This skill is internally consistent for remote trading: it needs your OKX/Binance API keys so the MCP server can place orders. Before installing, consider: (1) the default hosted MCP URL (https://mcp-skills.ai.antalpha.com/mcp) will receive your keys — set MCP_SERVER_URL to a self-hosted server if you want to keep keys in your own infrastructure; (2) always create API keys without withdrawal/transfer permissions and enable IP allowlisting on exchange side; (3) you can use demo/sandbox accounts first to test; (4) review the included install.sh and ~/.trader/config.toml to confirm only risk params are written locally; (5) if you don't trust the hosted MCP, do not provide real keys or run your own MCP server. If you want, I can list the exact lines where credentials are sent and where the default MCP URL is referenced.
功能分析
Type: OpenClaw Skill Name: cex-trader Version: 2.0.2 The skill is designed to manage and transmit sensitive Centralized Exchange (CEX) API keys and secrets for OKX and Binance to a remote MCP server (defaulting to mcp-skills.ai.antalpha.com). While this behavior is documented in SKILL.md and README.md as part of its 'hosted' service model, the transmission of raw financial credentials to a third-party endpoint constitutes a significant security risk. The implementation in scripts/cex_trader_cli.py and the cex-setup-save tool explicitly facilitates this transfer of secrets over the network.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
Name/description (CEX trading for OKX/Binance) match the declared env vars (OKX & Binance API keys) and the provided tools (spot/futures/account/setup). No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and the CLI instruct the agent to call MCP tools and to send API credentials to the MCP server (cex-setup-save → mcp / MCP_SERVER_URL). This is consistent with a remote-trading architecture but is materially different from a purely local-only tool: your API keys are transmitted to the MCP endpoint.
Install Mechanism
There is no install spec declared (instruction-only in the registry). The repo includes an install.sh and a CLI script, but nothing will be auto-downloaded from untrusted URLs. install.sh only creates ~/.trader/config.toml (risk params) and makes the CLI executable.
Credentials
Requested env vars (CEX_OKX_*/CEX_BINANCE_* and MCP_SERVER_URL) are proportional to the skill's function. Important: the skill explicitly transmits API keys from environment variables to the MCP server; users should treat this as credential exposure to the configured server and only use keys without withdrawal permissions and with appropriate allowlists.
Persistence & Privilege
always is false and the skill does not request permanent/global privileges or modify other skills. install.sh writes only its own config (~/.trader/config.toml) containing risk parameters, not API keys.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cex-trader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cex-trader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
- Fix: Corrected MCP server URL to https://mcp-skills.ai.antalpha.com/mcp in both SKILL.md metadata and the MCP_SERVER_URL environment variable description.
v2.0.1
v2.0.1 introduces improved environment variable documentation and credential handling clarification. - Declared required environment variables (CEX_OKX_*, CEX_BINANCE_*, MCP_SERVER_URL) in metadata - Clarified that credentials are only transmitted to the MCP server and not stored on disk - Updated documentation to align MCP_SERVER_URL default (localhost:3000) and explain hosted usage
v2.0.0
v2.0.0 introduces unified Binance & OKX trading support and major toolset expansion. - Added full support for Binance spot and futures trading. - Introduced new onboarding tools: cex-setup-check, cex-setup-save, cex-setup-verify. - All tools now accept an "exchange" parameter for flexible multi-exchange operations. - Enhanced error handling and dual-side position management. - Maintains backward compatibility with default "okx" exchange.
元数据
Slug cex-trader
版本 2.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Cex Trader 是什么?

Unified CEX trading capability layer for AI agents. Supports OKX and Binance spot and futures trading, account balance queries, order management, position qu... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。

如何安装 Cex Trader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cex-trader」即可一键安装,无需额外配置。

Cex Trader 是免费的吗?

是的,Cex Trader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Cex Trader 支持哪些平台?

Cex Trader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cex Trader?

由 bevanding(@bevanding)开发并维护,当前版本 v2.0.2。

💬 留言讨论