Skip to main content

Modify UM Order(TRADE)

API Description#

Order modify function, currently only LIMIT order modification is supported, modified orders will be reordered in the match queue

HTTP Request#

PUT /papi/v1/um/order

Request Weight(Order)#

1

Request Parameters#

NameTypeMandatoryDescription
orderIdLONGNO
origClientOrderIdSTRINGNO
symbolSTRINGYES
sideENUMYESSELL, BUY
quantityDECIMALYESOrder quantity
priceDECIMALYES
recvWindowLONGNO
timestampLONGYES

Response Example#

{    "orderId": 20072994037,    "symbol": "BTCUSDT",    "status": "NEW",    "clientOrderId": "LJ9R4QZDihCaS8UAOOLpgW",    "price": "30005",    "avgPrice": "0.0",    "origQty": "1",    "executedQty": "0",    "cumQty": "0",    "cumQuote": "0",    "timeInForce": "GTC",    "type": "LIMIT",    "reduceOnly": false,    "side": "BUY",    "positionSide": "LONG",    "origType": "LIMIT",    "selfTradePreventionMode": "NONE", //self trading preventation mode    "goodTillDate": 0      //order pre-set auot cancel time for TIF GTD order    "updateTime": 1629182711600}