Skip to content

Order Confirm

POST /api/v1.0/accounts/{acc_id}/order_confirm

Confirm an order. This endpoint needs to be called when need_order_confirm is returned as true after placing or modifying an order.

Path Parameters

ParameterTypeRequiredDescription
acc_idstringYesBusiness account ID.

Request Parameters

ParameterTypePositionRequiredDescription
confirm_idstringbodyYesOrder 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"
  }' | jq

Response Example

json
{
  "s": "ok",
  "d": {
    "order_id": "New order identifier."
  }
}

Failure:

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