Modify Order
POST/api/v1.0/sim-trade/{acc_id}/orders/{order_id}/modifyModify the quantity or price of an unfilled order. Only orders with status=2 (Submitted) can be modified.
Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
acc_id | string | path | Yes | Business account ID |
order_id | string | path | Yes | Original order ID |
new_qty | string | body | No | New quantity (must be a multiple of board lot) |
new_price | string | body | No | New 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"}' | jqResponse Fields
| Field | Type | Description |
|---|---|---|
order_id | string | Modified order ID |
Response Example
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"order_id": "1270781"
}
}