Order Confirm
POST/api/v1.0/accounts/{acc_id}/order_confirmConfirm an order. This endpoint needs to be called when need_order_confirm is returned as true after placing or modifying an order.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
acc_id | string | Yes | Business account ID. |
Request Parameters
| Parameter | Type | Position | Required | Description |
|---|---|---|---|---|
confirm_id | string | body | Yes | Order confirm ID, from the confirm_id of place order or modify order response. |
Request Example
bash
curl -X POST 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/order_confirm' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <AccessToken>' \
-d '{
"confirm_id": "confirm_id_from_place_or_modify_response"
}' | jqResponse Example
json
{
"s": "ok",
"d": {
"order_id": "New order identifier."
}
}Failure:
json
{
"s": "error",
"errcode": -1200,
"errmsg": "Error message."
}