Skip to content

Modify Order

PUT /api/v1/crypto/accounts/{acc_id}/orders/{orderId}

Modify the price or quantity of an outstanding (unfilled) order.

Restrictions

  • Only untriggered (ord_status = PENDING_TRIGGER) conditional orders can be modified; modification is not allowed after triggering.
  • Both qty and price are required. If you only need to change one field, pass the current value for the other.

Path Parameters

ParameterTypeRequiredDescription
acc_iduint64YesAccount ID
orderIdstringYesID of the order to modify

Request Parameters

ParameterTypeLocationRequiredDescription
req_idstringBodyYesIdempotency ID, 16–64 characters. The gateway prepends gw_ and forwards it downstream for deduplication.
qtystringBodyYesNew order quantity
pricestringBodyYesNew order price
order_versionuint32BodyYesOrder version number for optimistic locking. Obtained from the version field in the order details.
conditional_infoobjectBodyNoConditional order details. Only required when modifying a conditional order.

conditional_info Fields

ParameterTypeRequiredDescription
trigger_pricestringYesNew trigger price for the conditional order

Request Example

bash
curl -X PUT "https://webapi.futunn.com/api/v1/crypto/accounts/123456/orders/FTHC2989880641155745280T" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <AppKey>" \
  -H "X-Timestamp: <timestamp_ms>" \
  -H "X-Nonce: <nonce>" \
  -H "Authorization: <signature_base64>" \
  -d '{
    "req_id": "1750000000001_a1b2c3d4e5f6g7h8",
    "qty": "0.02",
    "price": "29500",
    "order_version": 1
  }'

Response Example

json
{
  "code": 0,
  "msg": "success",
  "data": {
    "order_id": "FTHC2989880641155745280T"
  }
}

Error Response:

json
{
  "code": 1,
  "msg": "Error message."
}