Skip to content

Modify Order

POST /api/v1.0/sim-trade/{acc_id}/orders/{order_id}/modify

Modify the quantity or price of an unfilled order. Only orders with status=2 (Submitted) can be modified.

Parameters

ParameterTypeLocationRequiredDescription
acc_idstringpathYesBusiness account ID
order_idstringpathYesOriginal order ID
new_qtystringbodyNoNew quantity (must be a multiple of board lot)
new_pricestringbodyNoNew price

Request Example

bash
curl -s -X POST "https://webapi.moomoo.com/api/v1.0/sim-trade/80303779/orders/1270781/modify" \
  -H "Content-Type: application/json" \
  -d '{"new_qty":"200","new_price":"360"}' | jq

Response Fields

FieldTypeDescription
order_idstringModified order ID

Response Example

json
{
  "ret_code": 0,
  "ret_msg": "success",
  "data": {
    "order_id": "1270781"
  }
}