Trading
Cancel Order
Cancel a specific order by its client order ID.
Args: account_name: Name of the account connector_name: Name of the connector client_order_id: Client order ID to cancel trading_pair: Trading pair for the order accounts_service: Injected accounts service
Returns: Success message with cancelled order ID
Raises: HTTPException: 404 if account/connector not found, 500 for cancellation errors
post/trading/{account_name}/{connector_name}/orders/{client_order_id}/cancel
Path parameters
account_namestring required
connector_namestring required
client_order_idstring required
Response
Successful Response
{"stackTrail":"paths:/trading/{account_name}/{connector_name}/orders/{client_order_id}/cancel:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}