← 返回 Skills 市场
🔌

LTP RapidX Trading

作者 LiquidityTech · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
35
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ltp-rapidx-trading
功能描述
Use when an agent needs to operate RapidX through MCP or CLI for account reads, market reads, order preview, order submit/amend/cancel, position management,...
使用说明 (SKILL.md)

RapidX Trading

Use this skill after ltp-rapidx-config has confirmed the runtime path as MCP_READY or CLI_ONLY_READY. Prefer MCP tools only when the agent host is MCP_READY. Use direct CLI commands only when the confirmed path is CLI_ONLY_READY.

Non-Negotiable Rules

  • Do not fake query or trading results. Every claim must come from an actual MCP tool or rapidx ... --json response, and final summaries must include toolOrCommandEvidence or equivalent observed evidence.
  • Do not use shell bridge scripts, temporary JavaScript scripts, directory-changing shell chains, or chained shell invocations.
  • Treat all trade-write tools as real production actions.
  • Never submit a write without preview evidence and explicit user consent for that specific write.
  • Use confirmation.submitToken from the preview response as the submit continueConsentId.
  • Keep business parameters unchanged between preview and submit. If symbol, side, quantity, price, order id, leverage, or mode changes, create a new preview.
  • If a write times out or the result is uncertain, query state before retrying.
  • Never echo secrets.

Invocation Path

Before any trading workflow, read the latest integration review from ltp-rapidx-config or run that skill first.

  • MCP_READY: use rapidx/... MCP tools and do not shell out to wrapper scripts.
  • CLI_ONLY_READY: use direct rapidx ... --json commands and do not claim MCP tools were called.
  • NOT_VERIFIED or only CLI_READY: stop and run config self-check before account, market, or trade workflows.

Do not switch paths during a task without new evidence. If an MCP call fails after MCP_READY, mark MCP degraded and verify state before retrying or falling back to CLI.

Version Check

At the start of a trading session or before the first write in a session, check the cached release status once:

  • MCP_READY: call rapidx/update/check or rapidx/self-check with checkUpdates=true.
  • CLI_ONLY_READY: run rapidx update check --json.

Do not perform a fresh network update check before every trade submit. If the update result is WRITE_BLOCKED or UPGRADE_REQUIRED, stop all trade-write actions, upgrade the CLI, restart or reload the MCP host when applicable, and rerun self-check. If skillsUpdateRecommended=true, tell the user the skills should be reinstalled from GitHub, but do not block read-only work solely for that reason.

Current MCP Surface

Use rapidx/tools for the authoritative runtime schema. Current normal-use tool names are:

Market:   rapidx/market/get-ticker, rapidx/market/get-orderbook,
          rapidx/market/get-klines, rapidx/market/get-funding-rate,
          rapidx/market/get-mark-price, rapidx/market/get-symbol-info,
          rapidx/market/get-open-interest
Account:  rapidx/account/overview, rapidx/account/balance,
          rapidx/account/set-position-mode
Update:   rapidx/update/check
Trade:    rapidx/trade/preview, rapidx/trade/verify-live
Order:    rapidx/order/place-preview, rapidx/order/amend-preview,
          rapidx/order/cancel-preview, rapidx/order/place,
          rapidx/order/amend, rapidx/order/cancel,
          rapidx/order/get, rapidx/order/list, rapidx/order/history
Position: rapidx/position/list, rapidx/position/history,
          rapidx/position/close, rapidx/position/set-leverage
Algo:     rapidx/algo/place, rapidx/algo/amend,
          rapidx/algo/cancel, rapidx/algo/list

rapidx/order/preview and rapidx/trading-verification are compatibility tools. Prefer rapidx/order/place-preview and rapidx/trade/verify-live in new workflows.

Read Workflow

Before making trading decisions, refresh state:

1. rapidx/account/overview
2. rapidx/account/balance with mode="portfolio"
3. rapidx/order/list
4. rapidx/position/list
5. rapidx/algo/list

For a symbol, refresh market data:

1. rapidx/market/get-symbol-info
2. rapidx/market/get-ticker
3. rapidx/market/get-orderbook
4. rapidx/market/get-mark-price
5. rapidx/market/get-klines
6. rapidx/market/get-funding-rate      # PERP only
7. rapidx/market/get-open-interest     # PERP only

Use symbol format {EXCHANGE}_{TYPE}_{BASE}_{QUOTE}, for example BINANCE_PERP_BTC_USDT or OKX_PERP_BTC_USDT. For OKX perpetuals, quantity is contract count; inspect symbol info before placing or amending orders.

Preview Then Submit

All writes use this pattern:

  1. Call the write-specific preview tool.
  2. Read previewId and confirmation.submitToken.
  3. Show the user the actual requestSummary, businessParams, max notional, order id/client order id, and riskNotes.
  4. Ask for explicit consent for this one write.
  5. Submit the target write with the same business parameters plus previewId and continueConsentId=\x3Cconfirmation.submitToken>.
  6. Query resulting state with the relevant read tool.

If the preview response does not include confirmation.submitToken, do not submit the write. Re-run preview with the current CLI/MCP runtime or report the integration as stale.

maxNotional is a safety upper bound, not the target order amount. Before increasing quantity, amount, or notional to satisfy an exchange rule, check symbol minNotional and ask the user to confirm the new amount.

Order placement:

rapidx/order/place-preview
rapidx/order/place
rapidx/order/get or rapidx/order/list

Order amend:

rapidx/order/amend-preview
rapidx/order/amend
rapidx/order/get or rapidx/order/list

Order cancel:

rapidx/order/cancel-preview
rapidx/order/cancel
rapidx/order/list

Non-order writes:

rapidx/trade/preview with targetCapabilityId
target tool, such as rapidx/position/set-leverage
matching read-back tool

Common targetCapabilityId values are position.set-leverage, position.close, account.set-position-mode, algo.place, algo.amend, and algo.cancel.

Order Rules

  • LIMIT order: requires quantity and price.
  • MARKET order: use only when the user explicitly authorizes market execution.
  • SPOT MARKET by quote amount uses quote quantity semantics.
  • PERP writes are leverage and margin sensitive.
  • Use a stable clientOrderId when the schema accepts one so status can be checked after a timeout.
  • Do not infer fills from placement. Confirm through order/get, order/list, order/history, or positions.
  • If a requested order is below the symbol minNotional, do not auto-increase to the minimum. Ask the user to approve the revised amount first.

Algo Orders

Use preview/submit for rapidx/algo/place, rapidx/algo/amend, and rapidx/algo/cancel.

Before placing TPSL or conditional orders:

  • Confirm target symbol, side, quantity, trigger price, stop/take-profit intent, and position side if hedge mode is used.
  • For TPSL, require at least one valid take-profit or stop-loss trigger.
  • After submit, verify through rapidx/algo/list.

Position And Account Risk Writes

Use separate explicit consent for each:

  • rapidx/position/set-leverage changes future risk for the symbol.
  • rapidx/account/set-position-mode changes account position mode and can affect existing workflows.
  • rapidx/position/close is a real close-position action. Verify current position first.

Do not pass side or quantity to position.close. The close-position API determines BUY or SELL from the current position and closes the target symbol/positionSide. In NET mode, closing a long behaves like SELL and closing a short behaves like BUY. Treat position.close as a market close unless the tool schema explicitly exposes another order type, and verify the result with rapidx/position/list. Use a reduce-only order flow for partial closes. If order/get later shows reduceOnly=false, do not treat that alone as a failed close; position.close uses the RapidX close-position API and the order readback may not echo the reduce-only intent.

Do not test these writes as part of ordinary setup.

Live Trading Verification

Use rapidx/trade/verify-live only when the user explicitly asks for a small real-trade verification and authorizes symbol, exchange, amount cap, cleanup behavior, and test window.

The verification must include:

1. read-only self-check
2. market and symbol rule lookup
3. explicit user consent
4. internal preview
5. post-only or safely far-from-market limit submit
6. order query
7. amend when supported
8. cancel
9. cleanup check for open orders, positions, and algo orders

If any step cannot be verified, return NOT_VERIFIED, EXPECTED_ERROR, or FAIL with observed evidence. Do not call it successful without real evidence.

CLI Fallback

When MCP is unavailable, use direct CLI equivalents with --json and the same preview/submit discipline:

rapidx order place-preview --input '{"symbol":"BINANCE_PERP_BTC_USDT","side":"BUY","orderType":"LIMIT","price":"65000","quantity":"0.001","maxNotional":"100","clientOrderId":"example-001"}' --json
rapidx order place --input '{"symbol":"BINANCE_PERP_BTC_USDT","side":"BUY","orderType":"LIMIT","price":"65000","quantity":"0.001","maxNotional":"100","clientOrderId":"example-001","previewId":"\x3CpreviewId>","continueConsentId":"\x3Cconfirmation.submitToken>"}' --json
rapidx trade preview --input '{"targetCapabilityId":"position.set-leverage","symbol":"BINANCE_PERP_BTC_USDT","leverage":5}' --json
rapidx trade verify-live --input '{"symbol":"BINANCE_PERP_BTC_USDT","side":"BUY","maxNotional":"100","clientOrderId":"verify-001","explicitUserConsent":true}' --json

Avoid shell chaining and wrapper scripts. Run commands from the agent workspace or use absolute paths supported by the host.

Final Answer

For trading work, state:

  • Which real tools or commands were called.
  • Which account/order/position facts were verified.
  • Whether the final state is open, filled, cancelled, closed, unchanged, or not verified.
  • Any remaining action the user must explicitly authorize.
安全使用建议
Install only if you want an agent to operate RapidX with real trading credentials. Use restricted API keys or a limited account where possible, and carefully review each preview for symbol, side, quantity, price, leverage, and max notional before approving any write.
能力标签
crypto
能力评估
Purpose & Capability
The stated purpose is to read RapidX account and market data and manage real orders, positions, leverage, position mode, and algo orders; this is high-impact financial authority but it is coherent with the skill name, description, and runtime content.
Instruction Scope
The instructions require a verified MCP or CLI path, actual tool or command evidence, preview-before-submit, one-write explicit user consent, unchanged parameters between preview and submit, state verification after uncertain writes, and no secret echoing.
Install Mechanism
The artifact inspected is a non-executable Markdown skill with no bundled scripts, declared dependencies, installer behavior, or hidden executable payload.
Credentials
API-backed trading access and live account mutation are proportionate for this trading skill, but users should only connect credentials and accounts they intend the agent to operate.
Persistence & Privilege
The artifact does not request background execution, persistence, local indexing, privilege escalation, credential harvesting, or unrelated filesystem access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ltp-rapidx-trading
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ltp-rapidx-trading 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial RapidX trading skill release
元数据
Slug ltp-rapidx-trading
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

LTP RapidX Trading 是什么?

Use when an agent needs to operate RapidX through MCP or CLI for account reads, market reads, order preview, order submit/amend/cancel, position management,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 35 次。

如何安装 LTP RapidX Trading?

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

LTP RapidX Trading 是免费的吗?

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

LTP RapidX Trading 支持哪些平台?

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

谁开发了 LTP RapidX Trading?

由 LiquidityTech(@liquiditytech)开发并维护,当前版本 v1.0.1。

💬 留言讨论