Skip to content

Cancel Order

DELETE /api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange={exchange}

Cancel an existing order.

Path Parameters

ParameterTypeRequiredDescription
acc_idstringYesBusiness account ID.
order_idstringYesOrder ID.

Request Parameters

ParameterTypePositionRequiredDescription
exchangestringqueryYesExchange. Values: US, SEHK, SGX, SSE, SZSE, JP, CA, etc.

Request Example

bash
curl -X DELETE 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange=US' \
  -H 'Authorization: Bearer <AccessToken>' | jq

Response Example

json
{
  "s": "ok"
}

Failure:

json
{
  "s": "error",
  "errcode": -1200,
  "errmsg": "Error message."
}