option_amend_order

Amend an unfilled OPTION order (price and/or size). Provide ordId or clOrdId. To modify attached TP/SL, use option_amend_algo_order with the algoId from option_get_algo_orders.

Server Okx Trade @okx_ai/okx-trade-mcp
Category Write
Risk class Medium
Parameters 51 required

What option_amend_order does on Okx Trade

AI agents use option_amend_order to create or update resources in Okx Trade — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Okx Trade environment.

ParameterTypeRequiredDescription
newPx string New price
newSz string New contracts count
ordId string
instId string Yes e.g. BTC-USD-241227-50000-C
clOrdId string

Parameters from the server's own tool schema.

Why option_amend_order needs a policy

This tool modifies an existing options order by changing its price and/or size. While it is technically a Write operation (modifying an existing order), it operates in a financial trading context. However, since the order is still unfilled and no money has moved yet, it does not directly execute a financial transaction — it only amends a pending order.

From the tool's definition Amend an unfilled OPTION order (price and/or size)

Questions about option_amend_order

What does the option_amend_order tool do? +

Amend an unfilled OPTION order (price and/or size). Provide ordId or clOrdId. To modify attached TP/SL, use option_amend_algo_order with the algoId from option_get_algo_orders. It is categorised as a Write tool in the Okx Trade MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.

What parameters does option_amend_order accept? +

option_amend_order accepts 5 parameters: newPx, newSz, ordId, instId, clOrdId. Required: instId. The full parameter table on this page comes from the server's own tool schema.

How do I enforce a policy on option_amend_order? +

Register the Okx Trade MCP server in PolicyLayer and add a rule for option_amend_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.

What risk level is option_amend_order? +

option_amend_order is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.

Can I rate-limit option_amend_order? +

Yes. Add a rate_limit block to the option_amend_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.

How do I block option_amend_order completely? +

Set action: deny in the PolicyLayer policy for option_amend_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.

What MCP server provides option_amend_order? +

option_amend_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.

// LOOK UP ANOTHER 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 →

// GET IN TOUCH

Have a question or want to learn more? Send us a message.

Message sent.

We'll get back to you soon.