Modify HF order

This interface can modify the price and quantity of the order according to orderId or clientOid.

The implementation of this interface is: cancel the order and place a new order on the same trading pair, and return the modification result to the client synchronously

When the quantity of the new order updated by the user is less than the filled quantity of this order, the order will be considered as completed, and the order will be cancelled, and no new order will be placed

HTTP REQUEST

POST /api/v1/hf/orders/alter

Example

POST /api/v1/hf/orders/alter

{
  "code": "200000",
  "data": {
    "newOrderId": "6d539dc614db3"
  }
}
API KEY PERMISSIONS

This endpoint requires the Spot Trading permission.

REQUEST URL

This endpoint support Spot URL

REQUEST RATE LIMIT

Spot weight:3

PARAMETERS
Param Type Mandatory Description
symbol String Yes symbol
clientOid String No clientOid
orderId String No other id
newPrice String No The modified price of the new order
newSize String No The modified size of the new order

orderId and clientOid must choose one

newPrice and newSize must choose one

RESPONSES
Param Description
newOrderId The order id of the new order