Skip to main content

Batch Orders

Supports 20 orders with a same symbol in a batch,rate limit:2 times/s.

Request

POST /api/v3/batchOrders?batchOrders=[{"type": "LIMIT_ORDER","price": "40000","quantity": "0.0002","symbol": "BTCUSDT","side": "BUY","newClientOrderId": 9588234},{"type": "LIMIT_ORDER","price": "4005","quantity": "0.0003","symbol": "BTCUSDT","side": "SELL"}]

Response

{
{ //success response:
[
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612316",
"orderListId": -1
},
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612318",
"orderListId": -1
}
],
//error response:
[
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612316",
"newClientOrderId": "hio8279hbdsds",
"orderListId": -1
},
{
"newClientOrderId": "123456",
"msg": "The minimum transaction volume cannot be less than:0.5USDT",
"code": 30002
},
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612318",
"orderListId": -1
}
]
}
}
  • POST /api/v3/batchOrders

Permission: SPOT_DEAL_WRITE

Rate limit: Shared with the cancel order endpoint, 12 requests/second

Parameters:

NametypeMandatoryDescription
batchOrdersLISTYESlist of batchOrders,supports max 20 orders
symbolSTRINGYESsymbol
sideENUMYESENUM: Order Side
typeENUMYESENUM: Order Type
quantityDECIMALNOquantity
quoteOrderQtyDECIMALNOquoteOrderQty
priceDECIMALNOorder price
newClientOrderIdSTRINGNOClientOrderId
stpModeSTRINGNO“” - Default value, no restriction on self-trading.“cancel_maker” - Cancel the maker order.“cancel_taker” - Cancel the taker order.“cancel_both” - Cancel both sides.
recvWindowLONGNOless than 60000
timestampLONGYESorder time

base on differenttype,some params are mandatory:

typeMandatory params
LIMITquantity, price
MARKETquantity or quoteOrderQty

Response

NametypeDescription
symbolSTRINGsymbol
orderIdSTRINGorderId