LTP RapidX Trading
/install ltp-rapidx-trading
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 ... --jsonresponse, and final summaries must includetoolOrCommandEvidenceor 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.submitTokenfrom the preview response as the submitcontinueConsentId. - 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: userapidx/...MCP tools and do not shell out to wrapper scripts.CLI_ONLY_READY: use directrapidx ... --jsoncommands and do not claim MCP tools were called.NOT_VERIFIEDor onlyCLI_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: callrapidx/update/checkorrapidx/self-checkwithcheckUpdates=true.CLI_ONLY_READY: runrapidx 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:
- Call the write-specific preview tool.
- Read
previewIdandconfirmation.submitToken. - Show the user the actual
requestSummary,businessParams, max notional, order id/client order id, andriskNotes. - Ask for explicit consent for this one write.
- Submit the target write with the same business parameters plus
previewIdandcontinueConsentId=\x3Cconfirmation.submitToken>. - 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
clientOrderIdwhen 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-leveragechanges future risk for the symbol.rapidx/account/set-position-modechanges account position mode and can affect existing workflows.rapidx/position/closeis 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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ltp-rapidx-trading - After installation, invoke the skill by name or use
/ltp-rapidx-trading - Provide required inputs per the skill's parameter spec and get structured output
What is 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,... It is an AI Agent Skill for Claude Code / OpenClaw, with 35 downloads so far.
How do I install LTP RapidX Trading?
Run "/install ltp-rapidx-trading" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is LTP RapidX Trading free?
Yes, LTP RapidX Trading is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does LTP RapidX Trading support?
LTP RapidX Trading is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created LTP RapidX Trading?
It is built and maintained by LiquidityTech (@liquiditytech); the current version is v1.0.1.