Install
openclaw skills install ltp-rapidx-configUse when an agent needs to install or configure RapidX CLI/MCP access, set production LTP credentials, locate the agent workspace MCP config, review integration, discover tools, or run read-only self-checks.
openclaw skills install ltp-rapidx-configUse this skill for setup and integration review only. Use ltp-rapidx-trading for account, market, order, position, algo, and live trading workflows.
rapidx mcp serve from the agent's own workspace MCP config.MCP_READY, CLI_ONLY_READY, or NOT_VERIFIED.Do not describe how to install this skill inside the skill itself. Assume the skill has already been installed by the agent host.
Before changing MCP config, identify the agent host workspace that will run RapidX:
mcpServers.rapidx only after the workspace and config path are known.Never assume the source repository root, filesystem root, or a global home config is the right target.
Ask whether the user wants to provide credentials as a user-provided chat secret. This is the default path for non-programmers, but state the risk first: even protected chat-secret flows are controlled by the agent host and may be subject to that host's retention, access, or collaboration settings.
If the agent host has a dedicated chat-secret UI, ask the user to create three secrets with the exact names LTP_ACCESS_KEY, LTP_SECRET_KEY, and LTP_API_HOST. If the host has no chat-secret UI, ask whether the user wants the agent to write masked-reference placeholders into MCP config or whether they prefer to set local environment variables manually.
Offer alternatives when the user wants stronger isolation:
Rules:
LTP_ACCESS_KEY, LTP_SECRET_KEY, and LTP_API_HOST.LTP_API_HOST has no default. Use the API host provided for the current environment.LTP_BASE_URL, RAPIDX_BASE_URL, or RAPIDX_PORTFOLIO_*.RapidX is published as an official npm package. Install the CLI:
npm install -g @liquiditytech/rapidx-cli
If global install is not allowed, install in the confirmed agent workspace and use the workspace-local executable path in MCP config:
npm install @liquiditytech/rapidx-cli
./node_modules/.bin/rapidx --version
Verify the installed CLI:
rapidx --version
rapidx schema --json
rapidx update check --json
rapidx self-check --read-only --json
For CLI-only agents, use direct rapidx ... --json commands. Do not create temporary bridge scripts, directory-changing shell chains, or shell command chaining for MCP access.
Classify the agent after CLI install and, when available, MCP configuration. Do not classify from agent product name or config file existence alone.
Before install, only choose a candidate path:
NOT_VERIFIED until MCP tools are actually callable.After install/config, set one status:
CLI_READY: rapidx --version and rapidx schema --json pass.MCP_READY: CLI_READY, initialize returns serverInfo.name=rapidx, tools/list shows 34 rapidx/... tools, and rapidx/tools, rapidx/update/check, plus rapidx/self-check can be called as MCP tools.CLI_ONLY_READY: CLI_READY, but the host cannot configure, discover, or call MCP tools.NOT_VERIFIED: no real invocation evidence, or only a config file was edited.Writing mcpServers.rapidx is only an attempted MCP setup. It is not proof of MCP readiness. If MCP is not MCP_READY, mark MCP as NOT_VERIFIED and use direct rapidx ... --json commands.
MCP is started by the CLI. Add this server to the agent workspace MCP config:
{
"mcpServers": {
"rapidx": {
"command": "rapidx",
"args": ["mcp", "serve"],
"env": {
"LTP_ACCESS_KEY": "<user-provided-secret-or-env-reference>",
"LTP_SECRET_KEY": "<user-provided-secret-or-env-reference>",
"LTP_API_HOST": "<user-provided-secret-or-env-reference>"
}
}
}
}
The MCP server command should be rapidx with args ["mcp", "serve"] when rapidx is on the MCP host PATH. If PATH is not guaranteed, use the absolute path to the installed rapidx executable as command and keep args as ["mcp", "serve"]. Do not point MCP tools at one-off CLI commands and do not add shell script wrappers.
If a host CLI such as Hermes tries to run an interactive mcp add flow and blocks on prompts like enabling all tools, do not keep retrying it in a non-interactive terminal. Edit the confirmed workspace MCP config directly with the JSON above, then restart or reload the agent host and verify through real MCP tool discovery.
Healthy MCP discovery exposes 34 tools:
Discovery: rapidx/tools, rapidx/self-check, rapidx/update/check
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
Trade: rapidx/trade/preview, rapidx/trade/verify-live
Order: rapidx/order/preview, 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
Compat: rapidx/trading-verification
Legacy snake_case names such as get_ticker, place_order, or list_positions indicate a stale integration and should not be used.
The self-check proves the configured runtime is real. Do not simulate results, invent balances, or claim success from documentation alone.
Run the quick check:
CLI_READY with rapidx --version and rapidx schema --json.rapidx update check --json during setup or review. This may read the GitHub release manifest and cache the result locally.rapidx/update/check when the host supports MCP tool invocation.rapidx/self-check with read-only scope when the host supports tool invocation. Use checkUpdates=true during setup or review.rapidx/market/get-ticker for BINANCE_PERP_BTC_USDT.If the host cannot invoke MCP tools yet, run equivalent CLI read-only checks and mark MCP tool invocation as NOT_VERIFIED; do not convert CLI success into MCP success.
Run the deeper review when asked for integration review or self-validation:
1. rapidx/tools
2. rapidx/update/check
3. rapidx/self-check with checkUpdates=true
4. rapidx/market/get-ticker
5. rapidx/market/get-orderbook
6. rapidx/market/get-klines
7. rapidx/market/get-funding-rate
8. rapidx/market/get-mark-price
9. rapidx/market/get-symbol-info
10. rapidx/market/get-open-interest
11. rapidx/account/overview
12. rapidx/account/balance with mode="portfolio"
13. rapidx/account/balance with mode="account" only to classify key scope
14. rapidx/order/list
15. rapidx/order/history
16. rapidx/order/get with a deliberately nonexistent self-check order id
17. rapidx/position/list
18. rapidx/position/history
19. rapidx/algo/list
mode="account" may return a real permission or key-scope error for portfolio-scoped credentials. Treat that as EXPECTED_ERROR, not as a failed portfolio integration.
PASS: actual tool or command returned a successful real response.EXPECTED_ERROR: route is live and returned a real business, permission, unsupported-mode, or deliberate not-found error.FAIL: tool is missing, startup/auth/network failed, response is malformed, or a required call timed out.NOT_VERIFIED: the agent could not invoke the tool or the user declined credentials.If update check returns WRITE_BLOCKED, UPGRADE_REQUIRED, or skillsUpdateRecommended=true, report it in the review. Do not run trading writes until a WRITE_BLOCKED or UPGRADE_REQUIRED CLI is upgraded and the MCP host is restarted.
Every row must include toolOrCommandEvidence or equivalent observed code/message evidence. Empty order, position, or history lists are PASS if the response is real and well formed.
Return this structure when asked to review setup:
# RapidX Integration Review
## Verdict
- status: PASS / PARTIAL / FAIL / NOT_VERIFIED
- runtime path: MCP_READY / CLI_ONLY_READY / NOT_VERIFIED
- main issues:
## Workspace And Config
- agent workspace:
- MCP config path:
- MCP command: rapidx mcp serve
- CLI package:
- host:
- credentials: configured and masked / missing / not verified
## Tool Discovery
- expected MCP tools: 34
- actual MCP tools:
- missing tools:
- legacy tools found:
## Version And Upgrade
- current CLI:
- latest CLI:
- minimum write version:
- update status:
- skills update recommended:
## Read-Only Checks
| check | result | evidence |
| --- | --- | --- |
## Required Fixes
- ...
Switch to ltp-rapidx-trading for any write verification or live trading test.