Skip to main content

Batch Order Placement and Cancellation

POST

/az/spot/batch-order/basket

Note​

For Market Makers Only

Limit Flow Rules​

200/s/apikey

Parameters​

ParameterTypeMandatoryDefaultDescriptionRanges
batchCreateCancelReqDTOListSet<batchCreateCancelReqDTO>true

batchCreateCancelReqDTO​

ParameterTypeMandatoryDefaultDescriptionRanges
createOrderFirstboolfalsetruePlace orders first by default; otherwise, cancel orders first.
clientBatchIdstringtrueBatch order request id
createOrdersSet<OrderCreateReqDTO>falseOrder list — a collection of OrderCreateDTO objects.Supports up to 100
cancelOrderIdsSet<Long>falseCancellation list — a collection of order IDs.Supports up to 300

OrderCreateReqDTO​

ParameterTypeMandatoryDefaultDescriptionRanges
symbolstringtrue
clientOrderIdstringfalsePattern: ^[a-zA-Z0-9_]{4,32}$
sidestringtrueBUY,SELL
typestringtrueorder type:LIMIT,MARKET
timeInForcestringtrueeffective way:GTC, FOK, IOC, GTX
bizTypestringtrueSPOT, PREDICTION
pricenumberfalseprice. Required if it is the LIMIT price; blank if it is the MARKET price
quantitynumberfalsequantity. Required if it is the LIMIT price or the order is placed at the market price by quantity
quoteQtynumberfalseamount. Required if it is the LIMIT price or the order is the market price when placing an order by amount
outcomenumberfalseoutcome. 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
}
]
}]
}