Modify Order (TRADE)
#
API DescriptionOrder modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue
#
HTTP RequestPUT /dapi/v1/order
#
Request Weight1
#
Request ParametersName | Type | Mandatory | Description |
---|---|---|---|
orderId | LONG | NO | |
origClientOrderId | STRING | NO | |
symbol | STRING | YES | |
side | ENUM | YES | SELL , BUY |
quantity | DECIMAL | NO | Order quantity, cannot be sent with closePosition=true |
price | DECIMAL | NO | |
recvWindow | LONG | NO | |
timestamp | LONG | YES |
- Either
orderId
ororigClientOrderId
must be sent, and theorderId
will prevail if both are sent.- Either
quantity
orprice
must be sent.- When the new
quantity
orprice
doesn't satisfy PRICE_FILTER / PERCENT_FILTER / LOT_SIZE, amendment will be rejected and the order will stay as it is.- However the order will be cancelled by the amendment in the following situations:
- when the order is in partially filled status and the new
quantity
<=executedQty
- When the order is
GTX
and the new price will cause it to be executed immediately- One order can only be modfied for less than 10000 times