Skip to main content

Bot Modify Order

Bot-specific modify order interface, directly calls matching engine to cancel + place order, does not involve DB and assets.

🔒 Requires IP whitelist authorization.

API Information​

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

Request Parameters​

ParameterLocationTypeRequiredDescription
idpathstringYesOriginal order ID

Body​

ParameterTypeRequiredDescription
symbolstringYesTrading pair (required, no DB query)
sidestringYesDirection: buy / sell (required)
new_pricestringYesNew price
new_qtystringYesNew quantity
client_order_idstringNoClient ID for new order

Request Example​

PUT /api/v1/bot/orders/1234567890123456789
{
"symbol": "BTC_USDT",
"side": "buy",
"new_price": "31000",
"new_qty": "0.2",
"client_order_id": "bot-new-order-001"
}

Response Fields​

FieldTypeDescription
codeintegerStatus code
messagestringResponse message
data.order_idstringNew order ID
data.modify_idstringModify ID
data.client_order_idstringClient order ID

Response Example​

{
"code": 0,
"message": "success",
"data": {
"order_id": "1234567890123456789",
"modify_id": "1234567890123456789",
"client_order_id": "bot-new-order-001"
}
}