Cancel Order
DELETE/api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange={exchange}Cancel an existing order.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | string | Yes | Business account ID. |
order_id | string | Yes | Order ID. |
Request Parameters
| Parameter | Type | Position | Required | Description |
|---|---|---|---|---|
exchange | string | query | Yes | Exchange. 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>' | jqResponse Example
json
{
"s": "ok"
}Failure:
json
{
"s": "error",
"errcode": -1200,
"errmsg": "Error message."
}