Skip to main content

Bot Modify Order

Bot-only order modification endpoint. Modifies the price and/or quantity of an open order.

🔒 Requires IP whitelist authorization.

API Information​

  • Method: PUT
  • Path: /fapi/v1/bot/orders/{id}

Request Parameters​

ParameterLocationTypeRequiredDescription
idpathstringYesOrder ID

Body​

ParameterTypeRequiredDescription
symbolstringYesTrading pair
position_sideintegerYesPosition side: 1=long, 2=short
position_actionintegerYesAction: 1=open, 2=close
new_pricestringNoNew price
new_qtystringNoNew quantity

Request Example​

PUT /fapi/v1/bot/orders/1234567890123456789
{
"symbol": "BTC_USDT",
"position_side": 1,
"position_action": 1,
"new_price": "68800",
"new_qty": "0.2"
}

Response Fields​

FieldTypeDescription
codeintegerStatus code
messagestringResponse message
data.order_idstringOrder ID
data.statusintegerOrder status

Response Example​

{
"code": 0,
"message": "success",
"data": {
"order_id": "1234567890123456789",
"status": 1
}
}