Skip to main content

Batch Orders

Supports up to 20 orders per batch for the same symbol.

HTTP Request

  • POST /api/v3/batchOrders

Required Permission: SPOT_DEAL_WRITE

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

Request 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 Parameters

NametypeDescription
symbolSTRINGsymbol
orderIdSTRINGorderId

Response

{
{
[
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612316",
"orderListId": -1
},
{
"symbol": "BTCUSDT",
"orderId": "1196315350023612318",
"orderListId": -1
}
],
[
{
"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
}
]
}
}