cancel_order
Cancel a pending trading order by providing its order ID and market index. Retrieve order details with get_orders to identify the correct identifiers.
Instructions
Cancel a pending trading order. Requires PRIVATE_KEY in .env.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"orderId": "<orderId>",
"marketIndex": "<marketIndex>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The order ID to cancel. Use get_orders to find order IDs. | |
| marketIndex | Yes | The market index the order belongs to. Use get_orders to find the marketIndex for each order. |