AI agents use spot_batch_orders 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 |
|---|---|---|---|
action | string | Yes | |
orders | array | Yes | Array (max 20). place: {instId,side,ordType,sz,tdMode(default cash; use cross for unified/margin accounts),px?,clOrdId?,tpTriggerPx?,tpOrdPx?,slTriggerPx?,slOrd |
Parameters from the server's own tool schema.
This tool places, cancels, or amends spot trading orders on a cryptocurrency exchange, which directly involves financial transactions and commitments. Batch execution of up to 20 orders amplifies the blast radius significantly. It falls squarely in the Financial category as the highest severity, since misuse could result in large unintended trades or financial losses.
From the tool's definition 'Batch place/cancel/amend up to 20 spot orders' and '[CAUTION]' on OKX exchange — directly executes financial trades
Attacks that exploit this kind of access
[CAUTION] Batch place/cancel/amend up to 20 spot orders. action: place|cancel|amend. 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.
spot_batch_orders accepts 2 parameters: action, orders. Required: action, orders. 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 spot_batch_orders: 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.
spot_batch_orders 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 spot_batch_orders 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 spot_batch_orders. 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.
spot_batch_orders 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 →