Batch Order Placement and Cancellation
POST
/az/spot/batch-order/basket
Note
For Market Makers Only
Limit Flow Rules
200/s/apikey
Parameters
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| batchCreateCancelReqDTOList | Set<batchCreateCancelReqDTO> | true |
batchCreateCancelReqDTO
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| createOrderFirst | bool | false | true | Place orders first by default; otherwise, cancel orders first. | |
| clientBatchId | string | true | Batch order request id | ||
| createOrders | Set<OrderCreateReqDTO> | false | Order list — a collection of OrderCreateDTO objects. | Supports up to 100 | |
| cancelOrderIds | Set<Long> | false | Cancellation list — a collection of order IDs. | Supports up to 300 |
OrderCreateReqDTO
| Parameter | Type | Mandatory | Default | Description | Ranges |
|---|---|---|---|---|---|
| symbol | string | true | |||
| clientOrderId | string | false | Pattern: ^[a-zA-Z0-9_]{4,32}$ | ||
| side | string | true | BUY,SELL | ||
| type | string | true | order type:LIMIT,MARKET | ||
| timeInForce | string | true | effective way:GTC, FOK, IOC, GTX | ||
| bizType | string | true | SPOT, PREDICTION | ||
| price | number | false | price. Required if it is the LIMIT price; blank if it is the MARKET price | ||
| quantity | number | false | quantity. Required if it is the LIMIT price or the order is placed at the market price by quantity | ||
| quoteQty | number | false | amount. Required if it is the LIMIT price or the order is the market price when placing an order by amount | ||
| outcome | number | false | outcome. Required if it is the PREDICTION bizType; [1=YES;2=NO] |
Response
{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": [{
"createOrdersResponse": [
{
"clientOrderId": "abc123",
"orderId": "100001",
"createState": "ORDER_000" //Refer to response code
}
],
"cancelOrdersResponse": [
{
"cancelOrderId": "100002",
"cancelState": "ORDER_000" //Refer to response code
}
]
}]
}