cancel_limit_order
Cancel an active limit order on Jupiter by providing its order account address. Returns an unsigned transaction for execution.
Instructions
Cancel a single active limit order.
This function is FREE to call and does not execute any transactions. It returns an unsigned transaction that must be signed and executed.
Args: order: Order account address to cancel
Returns: Dictionary containing: - success: Boolean indicating if the request was successful - data: Contains 'transaction' (unsigned) and 'requestId' - error: Error message if request failed
Note: - Returns unsigned transaction that needs to be executed - Uses configured wallet as maker
Example: >>> # Cancel a specific order >>> result = await api.cancel_limit_order( ... order="your_order_account_address_here" ... ) >>> if result["success"]: ... # Execute the cancellation ... exec_result = await api.execute_limit_order( ... transaction=result["data"]["transaction"], ... request_id=result["data"]["requestId"] ... )
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": {
"order": "<order>"
},
"name": "cancel_limit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||