[DEPRECATED] Use swap_place_algo_order with ordType='move_order_stop' instead. Place a SWAP/FUTURES trailing stop order. [CAUTION] Executes real trades. Specify callbackRatio (e.g. '0.01'=1%) or callbackSpread (fixed price distance), not both. Optionally set activePx so tracking starts once marke...
AI agents use swap_place_move_stop_order to commit financial operations through Okx Trade — usually the final step of a payment, billing, or trading workflow. A call moves real money.
| Parameter | Type | Required | Description |
|---|---|---|---|
sz | string | Yes | Number of contracts (NOT USDT amount). Use market_get_instruments to get ctVal for conversion. |
side | string | Yes | sell=close long, buy=close short |
instId | string | Yes | e.g. BTC-USDT-SWAP |
tdMode | string | Yes | cross|isolated margin |
posSide | string | — | net=one-way (default); long/short=hedge mode |
activePx | string | — | Activation price; tracking starts after market reaches this level |
reduceOnly | boolean | — | Ensure order only reduces position |
algoClOrdId | string | — | Client-assigned algo order ID (1-32 alphanumeric chars). Legacy alias clOrdId is also accepted. |
callbackRatio | string | — | Callback ratio (e.g. '0.01'=1%); provide either ratio or spread |
callbackSpread | string | — | Callback spread in price units; provide either ratio or spread |
Parameters from the server's own tool schema.
This tool executes real trades on OKX exchange by placing trailing stop orders for SWAP/FUTURES instruments. It directly commits financial obligations and moves money in live markets, making it Financial category with critical severity due to the potential for significant financial loss if misused.
From the tool's definition Place a SWAP/FUTURES trailing stop order. [CAUTION] Executes real trades.
Risk signalsHigh parameter count (10 properties)
Attacks that exploit this kind of access
[DEPRECATED] Use swap_place_algo_order with ordType='move_order_stop' instead. Place a SWAP/FUTURES trailing stop order. [CAUTION] Executes real trades. Specify callbackRatio (e.g. '0.01'=1%) or callbackSpread (fixed price distance), not both. Optionally set activePx so tracking starts once market reaches that price. It is categorised as a Financial tool in the Okx Trade MCP Server, which means it involves financial transactions. Block by default and require explicit approval.
swap_place_move_stop_order accepts 10 parameters: sz, side, instId, tdMode, posSide, activePx, reduceOnly, algoClOrdId, callbackRatio, callbackSpread. Required: sz, side, instId, tdMode. The full parameter table on this page comes from the server's own tool schema.
Register the Okx Trade MCP server in PolicyLayer and add a rule for swap_place_move_stop_order: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Okx Trade. Nothing to install.
swap_place_move_stop_order is a Financial tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the swap_place_move_stop_order rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for swap_place_move_stop_order. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
swap_place_move_stop_order is provided by the Okx Trade MCP server (@okx_ai/okx-trade-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →