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â
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
| id | path | string | Yes | Original order ID |
Bodyâ
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | string | Yes | Trading pair (required, no DB query) |
| side | string | Yes | Direction: buy / sell (required) |
| new_price | string | Yes | New price |
| new_qty | string | Yes | New quantity |
| client_order_id | string | No | Client 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â
| Field | Type | Description |
|---|---|---|
| code | integer | Status code |
| message | string | Response message |
| data.order_id | string | New order ID |
| data.modify_id | string | Modify ID |
| data.client_order_id | string | Client order ID |
Response Exampleâ
{
"code": 0,
"message": "success",
"data": {
"order_id": "1234567890123456789",
"modify_id": "1234567890123456789",
"client_order_id": "bot-new-order-001"
}
}