Private
Batch Modify Order Channel
Description
This channel uses a two-tier status code structure:
- Outer
code/msg: whether the batch order modification request as a whole was accepted - Inner
args[i].code/args[i].msg: the modification result of each individual order
An outer code=0 does not mean every sub-order succeeded.
The ACK response only indicates that the request has been successfully accepted. Please use the WebSocket order push channel to confirm the actual status of each order.
- Isolated margin mode is not supported for batch order modification.
Code
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| op | String | Yes | Operation: trade |
| id | String | Yes | Request identifier |
| topic | String | Yes | Topicbatch-modify |
| category | String | No | Business line, lowercase onlyspot Spot tradingmargin Margin tradingusdt-futures USDT Futurescoin-futures Coin-M futuresusdc-futures USDC Futures |
| args | List<Object> | Yes | Channel list |
| > orderId | String | No | Order ID Either orderId or clientOid is required. If both orderId and clientOid are passed simultaneously, orderId takes higher priority, and the clientOid parameter will be ignored. |
| > clientOid | String | No | Client order ID Either orderId or clientOid is required. If both orderId and clientOid are passed simultaneously, orderId takes higher priority, and the clientOid parameter will be ignored. |
| > qty | String | No | Order quantity - Spot For market buy orders, the unit is quote coin For limit and market sell orders, the unit is base coin - Futures The unit is base coin |
| > price | String | No | Order price This field is required when orderType is limit |
| > autoCancel | String | No | Will the original order be canceled if the order modification failsyes: Cancel no: Not cancel(default)When set to yes: if the matching engine fails to modify the order, the order is cancelled immediately; after cancellation, the counter will reject any further modification requests for that order (including in-flight and new requests). |
| > symbol | String | No | Symbol name, case-insensitive |
Code
Response Parameters
| Parameters | Type | Description |
|---|---|---|
| event | String | Eventtrade/error |
| id | String | Request identifier |
| topic | String | Topicbatch-modify |
| args | List<Object> | Channel list |
| > orderId | String | Order ID |
| > clientOid | String | Client order ID |
| > receiveTime | String | Gateway receive time Unix microsecond timestamp |
| > pushTime | String | Gateway push time Unix microsecond timestamp |
| > code | String | Code |
| > msg | String | Message |
| code | String | Code |
| msg | String | Message |
| connId | String | Connection ID |
| rateLimit | Array | Rate limit balance array |
| > limit | String | Rate limit quota for this dimension |
| > remaining | String | Remaining available quota |
| ts | String | Timestamp |
